Adjust linked buttons.

Enum MultitouchButtonType is here: https://github.com/supertuxkart/stk-code/blob/master/src/input/multitouch_device.hpp
This commit is contained in:
Sonter 2024-01-17 20:12:55 +03:00 committed by GitHub
parent fab7915011
commit 6573ebe09e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,7 +266,7 @@ void MultitouchDevice::updateDeviceState(unsigned int event_id)
if (button == NULL) if (button == NULL)
return false; return false;
return button->type >= BUTTON_FIRE && return button->type >= BUTTON_FIRE &&
button->type <= BUTTON_RESCUE; button->type <= BUTTON_LOOK_BACKWARDS;
}; };
const MultitouchEvent& event = m_events[event_id]; const MultitouchEvent& event = m_events[event_id];