summaryrefslogtreecommitdiff
path: root/src/util/input.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-25 08:58:39 +0100
committeraura <nw@moneybot.cc>2026-02-25 08:58:39 +0100
commit3e5e15a4923c752be703d7afb1214d5e5a767fad (patch)
treed76049a556bd0fff581a018408faa6bed23b74eb /src/util/input.h
parent25da8e01a0499c273357cb2feb2825b53e86795b (diff)
finish wall collisions (clipvelocity), some utils
Diffstat (limited to 'src/util/input.h')
-rw-r--r--src/util/input.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/input.h b/src/util/input.h
index 86d715c..1317f94 100644
--- a/src/util/input.h
+++ b/src/util/input.h
@@ -38,7 +38,7 @@ using ON_INPUT_FN = std::function<void( SDL_Event* )>;
struct INPUT_DATA {
MOUSE_DATA mouse;
U8 keys[0xff];
- bool mouselock;
+ U8 mouselock;
F32 msens = .3f;
F32 myaw = 1.f;
F32 mpitch = 1.f;
@@ -54,7 +54,7 @@ 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 U8 input_is_key_down( U32 key );
-extern void input_capture_mouse( bool capture );
+extern void input_capture_mouse( U8 capture );
extern void input_reset_mouse_accumulator();
#define kb_down( key ) input_is_key_down( key )