mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Fix TODO in joystick code (#15179)
This commit is contained in:
@@ -3976,10 +3976,9 @@ bool GUIFormSpecMenu::preprocessEvent(const SEvent& event)
|
||||
}
|
||||
|
||||
if (event.EventType == irr::EET_JOYSTICK_INPUT_EVENT) {
|
||||
/* TODO add a check like:
|
||||
if (event.JoystickEvent != joystick_we_listen_for)
|
||||
if (event.JoystickEvent.Joystick != m_joystick->getJoystickId())
|
||||
return false;
|
||||
*/
|
||||
|
||||
bool handled = m_joystick->handleEvent(event.JoystickEvent);
|
||||
if (handled) {
|
||||
if (m_joystick->wasKeyDown(KeyType::ESC)) {
|
||||
|
Reference in New Issue
Block a user