mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
RMG-Input: fix configuration GUI button being stuck when bound by axis
This commit is contained in:
@@ -1326,7 +1326,7 @@ void ControllerWidget::on_MainDialog_SdlEvent(SDL_Event* event)
|
||||
// more than 50%, otherwise we might detect
|
||||
// an accidental axis movement (due to i.e deadzone)
|
||||
const bool sdlAxisButtonPressed = (abs(sdlAxisValue) >= (SDL_AXIS_PEAK / 2));
|
||||
int sdlAxisDirection = (sdlAxisValue > 0 ? 1 : 0);
|
||||
int sdlAxisDirection = (sdlAxisValue >= 0 ? 1 : 0);
|
||||
|
||||
// make sure we have the right joystick
|
||||
if (joystickId != this->currentJoystickId)
|
||||
|
||||
Reference in New Issue
Block a user