diff options
author | ewewukek <ewewukek@gmail.com> | 2024-01-11 14:20:39 +0300 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-05-15 00:11:38 +0200 |
commit | 0ff6869e745b4a0174ab1ee116ba5d6ad08e4812 (patch) | |
tree | 20411f52ba209bdffee2c9b6dc7b30ed36a584cf /src/gui | |
parent | 1dc559144c8809e2d9ab91a5f90a2047fc0595bc (diff) | |
download | plus-0ff6869e745b4a0174ab1ee116ba5d6ad08e4812.tar.gz plus-0ff6869e745b4a0174ab1ee116ba5d6ad08e4812.tar.bz2 plus-0ff6869e745b4a0174ab1ee116ba5d6ad08e4812.tar.xz plus-0ff6869e745b4a0174ab1ee116ba5d6ad08e4812.zip |
Extend gui support to joystick hat (d-pad)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/sdlinput.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index f9ff0f618..bf6f0536c 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -172,6 +172,7 @@ void SDLInput::pushInput(const SDL_Event &event) } case SDL_JOYBUTTONDOWN: + case SDL_JOYHATMOTION: { const InputActionT actionId = inputManager.getActionByKey(event); if (actionId > InputAction::NO_VALUE) |