summaryrefslogtreecommitdiff
path: root/src/input/joystick.h
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-01-11 13:50:03 +0300
committerewewukek <ewewukek@gmail.com>2024-03-27 13:18:30 +0300
commit5fcfc0ae8222de65e83857947e23eb6b449f3f03 (patch)
tree127e1ee6e0e8b880779ab6f1f1b47a5076a032a7 /src/input/joystick.h
parent9728279062a74c4e80c7ed1c714571ae6fda2016 (diff)
downloadmanaverse-5fcfc0ae8222de65e83857947e23eb6b449f3f03.tar.gz
manaverse-5fcfc0ae8222de65e83857947e23eb6b449f3f03.tar.bz2
manaverse-5fcfc0ae8222de65e83857947e23eb6b449f3f03.tar.xz
manaverse-5fcfc0ae8222de65e83857947e23eb6b449f3f03.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;