summaryrefslogtreecommitdiff
path: root/src/input/joystick.h
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-01-11 13:50:03 +0300
committerFedja Beader <fedja@protonmail.ch>2024-05-15 00:11:38 +0200
commit1dc559144c8809e2d9ab91a5f90a2047fc0595bc (patch)
tree47fbac5776f2277df4a625cc5a8547c99d28589f /src/input/joystick.h
parent046ac8fceda89092f01325abbc8d2b5b8602719c (diff)
downloadmv-1dc559144c8809e2d9ab91a5f90a2047fc0595bc.tar.gz
mv-1dc559144c8809e2d9ab91a5f90a2047fc0595bc.tar.bz2
mv-1dc559144c8809e2d9ab91a5f90a2047fc0595bc.tar.xz
mv-1dc559144c8809e2d9ab91a5f90a2047fc0595bc.zip
Gui support for joystick buttons
Diffstat (limited to 'src/input/joystick.h')
-rw-r--r--src/input/joystick.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/joystick.h b/src/input/joystick.h
index 805efa6ad..2a43d1a14 100644
--- a/src/input/joystick.h
+++ b/src/input/joystick.h
@@ -151,6 +151,8 @@ class Joystick final
KeysVector *getActionVectorByKey(const int i) A_WARN_UNUSED;
+ InputActionT getActionId(const SDL_Event &event) A_WARN_UNUSED;
+
int getButtonFromEvent(const SDL_Event &event) const A_WARN_UNUSED;
bool isActionActive(const InputActionT index) const A_WARN_UNUSED;