MidnightControls 1.8.1 - Bugfix and Ukrainian Translation

- Fixes #185 (Left joystick not working like a mouse when it's supposed to)
- Includes Ukrainian translation by @forditt (from #170)
This commit is contained in:
Motschen
2023-03-18 18:53:21 +01:00
parent 66cdca30fe
commit c086ecfcef
3 changed files with 186 additions and 2 deletions

View File

@@ -589,7 +589,7 @@ public class MidnightInput {
{
client.currentScreen.mouseScrolled(0.0, 0.0, -(value * 1.5f));
}
else if (absValue >= deadZone) {
else if (isScreenInteractive(client.currentScreen) && absValue >= deadZone) {
if (value > 0 && joystickCooldown == 0) {
switch (axis) {
case GLFW_GAMEPAD_AXIS_LEFT_Y -> this.changeFocus(client.currentScreen, NavigationDirection.UP);