summaryrefslogtreecommitdiff
path: root/src/input/joystick.h
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-01-11 15:09:17 +0300
committerFedja Beader <fedja@protonmail.ch>2024-05-15 00:11:38 +0200
commit45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29 (patch)
tree194c20902eb756c2e5e2bbdf81152ce5049cadcf /src/input/joystick.h
parent842b7fd4db44d85308afbb401023429621d9c586 (diff)
downloadmv-45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29.tar.gz
mv-45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29.tar.bz2
mv-45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29.tar.xz
mv-45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29.zip
Refactor joystick input code
Diffstat (limited to 'src/input/joystick.h')
-rw-r--r--src/input/joystick.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input/joystick.h b/src/input/joystick.h
index 2a7e0f638..bd5ca533d 100644
--- a/src/input/joystick.h
+++ b/src/input/joystick.h
@@ -203,6 +203,12 @@ class Joystick final
static bool mEnabled;
static bool mInitialized;
static int joystickCount;
+
+ int getButton(const int key) const A_WARN_UNUSED;
+
+ int getNegativeAxis(const int key) const A_WARN_UNUSED;
+
+ int getPositiveAxis(const int key) const A_WARN_UNUSED;
};
extern Joystick *joystick;