From a061f8af10ae730094211c45ac6f871675a32164 Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Wed, 15 Dec 2021 12:26:00 +0100 Subject: [PATCH] trying to fix menu problems with analog controllers --- src/common/PJoystickHandler.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/PJoystickHandler.cxx b/src/common/PJoystickHandler.cxx index 250919b5e..3f4c214b1 100644 --- a/src/common/PJoystickHandler.cxx +++ b/src/common/PJoystickHandler.cxx @@ -838,11 +838,10 @@ void PhysicalJoystickHandler::handleRegularAxisEvent(const PhysicalJoystickPtr j // Now filter out consecutive, similar values // (only pass on the event if the state has changed) if(value != j->axisLastValue[axis]) - { myHandler.overlay().handleJoyAxisEvent(stick, JoyAxis(axis), convertAxisValue(value), button); - - } } + else + myHandler.overlay().handleJoyAxisEvent(stick, JoyAxis(axis), JoyDir::NONE, button); j->axisLastValue[axis] = value; } #endif