diff options
author | ewewukek <ewewukek@gmail.com> | 2024-01-11 15:09:17 +0300 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-05-15 00:11:38 +0200 |
commit | 45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29 (patch) | |
tree | 194c20902eb756c2e5e2bbdf81152ce5049cadcf /src/input/joystick.h | |
parent | 842b7fd4db44d85308afbb401023429621d9c586 (diff) | |
download | plus-45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29.tar.gz plus-45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29.tar.bz2 plus-45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29.tar.xz plus-45ce5db3a8b84e441ebeb10c54b2a2b7821e5c29.zip |
Refactor joystick input code
Diffstat (limited to 'src/input/joystick.h')
-rw-r--r-- | src/input/joystick.h | 6 |
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; |