1
0
forked from Clones/Controlify

✏️ More clear no gyro message for Steam Deck

This commit is contained in:
isXander
2023-07-02 19:51:58 +01:00
parent 209de2f026
commit 9221c6a504
2 changed files with 5 additions and 1 deletions

View File

@ -508,7 +508,8 @@ public class ControllerConfigScreenFactory {
return opt;
}));
} else {
gyroGroup.option(LabelOption.create(Component.translatable("controlify.gui.group.gyro.no_gyro.tooltip").withStyle(ChatFormatting.RED)));
boolean isSteamDeck = gamepad != null && gamepad.hidInfo().map(hid -> hid.hidDevice().map(d -> SteamDeckDriver.isSteamDeck(d.getVendorId(), d.getProductId())).orElse(false)).orElse(false);
gyroGroup.option(LabelOption.create(Component.translatable(!isSteamDeck ? "controlify.gui.group.gyro.no_gyro.tooltip" : "controlify.gui.group.gyro.no_gyro_steamdeck.tooltip").withStyle(ChatFormatting.RED)));
}
return gyroGroup.build();

View File

@ -83,6 +83,7 @@
"controlify.gui.group.gyro": "Gyro",
"controlify.gui.group.gyro.tooltip": "Adjust how Controlify treats your controller's built in gyroscope.\nA gyroscope determines how the controller is rotated.",
"controlify.gui.group.gyro.no_gyro.tooltip": "This controller does not support Gyro. You must have a DualSense™ controller or other compatible controller to use this feature.",
"controlify.gui.group.gyro.no_gyro_steamdeck.tooltip": "Steam Deck's gyroscope does not currently work with Controlify. For now, use Steam Input to emulate gyro to work as a mouse.",
"controlify.gui.gyro_look_sensitivity": "Look Sensitivity",
"controlify.gui.gyro_look_sensitivity.tooltip": "The percentage of the real-world rotation of your controller to use as look input. For example, rotating your controller 90 degrees, will move the camera 90 degrees, at 100%.\nThe pitch of your controller is used as up/down and the roll and yaw is used for left/right.\nThis sensitivity is completely independent of the regular horizontal and vertical sensitivity settings.",
"controlify.gui.gyro_behaviour": "Gyro Behaviour",
@ -114,6 +115,8 @@
"controlify.gui.format.hold_toggle.hold": "Hold",
"controlify.gui.format.hold_toggle.toggle": "Toggle",
"controlify.gui.format.open": "OPEN URL",
"controlify.gui.format.top": "Top",
"controlify.gui.format.bottom": "Bottom",
"controlify.gui.button": "Controller Settings...",