Skip to content

Commit

Permalink
Fix #4960 (#5003)
Browse files Browse the repository at this point in the history
Adjust linked buttons.

Enum MultitouchButtonType is here: https://github.com/supertuxkart/stk-code/blob/master/src/input/multitouch_device.hpp
  • Loading branch information
S0nter authored Jan 17, 2024
1 parent fab7915 commit 6573ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/multitouch_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void MultitouchDevice::updateDeviceState(unsigned int event_id)
if (button == NULL)
return false;
return button->type >= BUTTON_FIRE &&
button->type <= BUTTON_RESCUE;
button->type <= BUTTON_LOOK_BACKWARDS;
};

const MultitouchEvent& event = m_events[event_id];
Expand Down

0 comments on commit 6573ebe

Please sign in to comment.