Skip to content

Commit

Permalink
Bugfix before UI3-276 is released:
Browse files Browse the repository at this point in the history
* PTZ pad once again can light up due to gamepad activity while Experimental Joystick API is enabled.
  • Loading branch information
bp2008 committed Oct 4, 2024
1 parent 71bd605 commit 8f41cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui3/ui3.js
Original file line number Diff line number Diff line change
Expand Up @@ -7839,6 +7839,7 @@ function GamepadPtzController()
else
Y = state.down;
PTZ_Joystick_Input(X, Y, state.zin, state.zout);
ptzButtons.vue().applySvgButtonColors();
}
}
}
Expand All @@ -7862,7 +7863,10 @@ function GamepadPtzController()
state.right = 0;

if (settings.ui3_experimental_joystick_api === "1")
{
PTZ_Joystick_Input(0, 0, 0, 0);
ptzButtons.vue().applySvgButtonColors();
}
}
function ReadBinding(binding)
{
Expand Down

0 comments on commit 8f41cc3

Please sign in to comment.