summaryrefslogtreecommitdiff
path: root/src/util/input.h
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-11-27 17:19:02 +0100
committernavewindre <boneyaard@gmail.com>2025-11-27 17:21:48 +0100
commite3de3ba5162f7ddd5005911124d4333e140fd984 (patch)
treeefb2d3851940ba1b70f0105611cddb17344e7e32 /src/util/input.h
parent5c8bbc3bc618068af1f7d6f2829c4346570c2ab9 (diff)
bunch o stuff
Diffstat (limited to 'src/util/input.h')
-rw-r--r--src/util/input.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/input.h b/src/util/input.h
index ec901ab..86d715c 100644
--- a/src/util/input.h
+++ b/src/util/input.h
@@ -38,8 +38,10 @@ using ON_INPUT_FN = std::function<void( SDL_Event* )>;
struct INPUT_DATA {
MOUSE_DATA mouse;
U8 keys[0xff];
- bool mouse_captured;
- F32 mouse_sensitivity = .3f;
+ bool mouselock;
+ F32 msens = .3f;
+ F32 myaw = 1.f;
+ F32 mpitch = 1.f;
INPUT_KEYBINDS binds;
LIST<ON_INPUT_FN> on_input;
@@ -51,7 +53,7 @@ extern INPUT_DATA input;
extern void input_frame_end();
extern void input_on_event( SDL_Event* e );
extern void input_on_mouse( I32 type, I32 x, I32 y );
-extern void input_is_key_down( U32 key );
+extern U8 input_is_key_down( U32 key );
extern void input_capture_mouse( bool capture );
extern void input_reset_mouse_accumulator();