summaryrefslogtreecommitdiffstats
path: root/src/game/client/gamepad.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-07-01 03:08:39 +0500
committeruntodesu <kirill@untode.su>2025-07-01 03:08:39 +0500
commit458e0005690ea9d579588a0a12368fc2c2c9a93a (patch)
tree588a9ca6cb3c76d9193b5bd4601d64f0e50e8c8c /src/game/client/gamepad.hh
parentc7b0c8e0286a1b2bb7ec55e579137dfc3b22eeb9 (diff)
downloadvoxelius-458e0005690ea9d579588a0a12368fc2c2c9a93a.tar.bz2
voxelius-458e0005690ea9d579588a0a12368fc2c2c9a93a.zip
I hyper-focued on refactoring again
- I put a cool-sounding "we are number one" remix on repeat and straight up grinded the entire repository to a better state until 03:09 AM. I guess I have something wrong in my brain that makes me do this shit
Diffstat (limited to 'src/game/client/gamepad.hh')
-rw-r--r--src/game/client/gamepad.hh45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/game/client/gamepad.hh b/src/game/client/gamepad.hh
deleted file mode 100644
index 692422e..0000000
--- a/src/game/client/gamepad.hh
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef CLIENT_GAMEPAD_HH
-#define CLIENT_GAMEPAD_HH 1
-#pragma once
-
-constexpr static int INVALID_GAMEPAD_AXIS = INT_MAX;
-constexpr static int INVALID_GAMEPAD_BUTTON = INT_MAX;
-
-class ConfigBoolean;
-class ConfigFloat;
-
-struct GLFWgamepadstate;
-
-namespace gamepad
-{
-extern bool available;
-extern ConfigFloat deadzone;
-extern ConfigBoolean active;
-extern GLFWgamepadstate state;
-extern GLFWgamepadstate last_state;
-} // namespace gamepad
-
-namespace gamepad
-{
-void init(void);
-void update_late(void);
-} // namespace gamepad
-
-// This simulates buttons using axes. When an axis
-// value exceeds 1.5 times the deadzone, the event is
-// queued with a GLFW_PRESS action, when it falls back
-// below the threshold, the event is queued with GLFW_RELEASE action
-struct GamepadAxisEvent final {
- int action;
- int axis;
-};
-
-// This smears GLFW event sugar over gamepad polling
-// system. Whenever it detects a state change, the event
-// is queued with an appropriate action
-struct GamepadButtonEvent final {
- int action;
- int button;
-};
-
-#endif // CLIENT_GAMEPAD_HH