From d7a82382999a434ce354fac4d3a111350d75837a Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Wed, 2 Dec 2015 17:08:20 -0500 Subject: [PATCH] Reenable buttonbits since PX4 firmware has been fixed to ignore them in gamepad mode --- src/Joystick/Joystick.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Joystick/Joystick.cc b/src/Joystick/Joystick.cc index 280b23fac..37d6140f2 100644 --- a/src/Joystick/Joystick.cc +++ b/src/Joystick/Joystick.cc @@ -347,9 +347,7 @@ void Joystick::run(void) } // Mark the button as pressed as long as its pressed - if (buttonIndex < reservedButtonCount) { - buttonPressedBits |= buttonBit; - } + buttonPressedBits |= buttonBit; } } -- 2.22.0