summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-01-11 14:20:39 +0300
committerFedja Beader <fedja@protonmail.ch>2024-05-15 00:11:38 +0200
commit0ff6869e745b4a0174ab1ee116ba5d6ad08e4812 (patch)
tree20411f52ba209bdffee2c9b6dc7b30ed36a584cf /src/gui
parent1dc559144c8809e2d9ab91a5f90a2047fc0595bc (diff)
downloadplus-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.cpp1
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)