Browse Source

Fix devices/joystick d-pad handling

pull/481/head
Gleb Mazovetskiy 6 years ago committed by Anders Jenbo
parent
commit
e2ea5b54bc
  1. 1
      SourceX/controls/devices/joystick.cpp

1
SourceX/controls/devices/joystick.cpp

@ -104,6 +104,7 @@ ControllerButton JoyButtonToControllerButton(const SDL_Event &event)
if (event.jhat.hat == JOY_HAT_DPAD_RIGHT_HAT && (event.jhat.value & JOY_HAT_DPAD_RIGHT) != 0)
return ControllerButton::BUTTON_DPAD_RIGHT;
#endif
return ControllerButton::IGNORE;
break;
default:
break;

Loading…
Cancel
Save