Commit 84ee0779 authored by Don Gagne's avatar Don Gagne

parent 093f0830
...@@ -520,12 +520,9 @@ void Joystick::run(void) ...@@ -520,12 +520,9 @@ void Joystick::run(void)
// Button was up last time through, but is now down which indicates a button press // Button was up last time through, but is now down which indicates a button press
qCDebug(JoystickLog) << "button triggered" << buttonIndex; qCDebug(JoystickLog) << "button triggered" << buttonIndex;
if (buttonIndex >= _totalButtonCount) { QString buttonAction =_rgButtonActions[buttonIndex];
// Button is above firmware reserved set if (!buttonAction.isEmpty()) {
QString buttonAction =_rgButtonActions[buttonIndex]; _buttonAction(buttonAction);
if (!buttonAction.isEmpty()) {
_buttonAction(buttonAction);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment