From 3e5e15a4923c752be703d7afb1214d5e5a767fad Mon Sep 17 00:00:00 2001 From: aura Date: Wed, 25 Feb 2026 08:58:39 +0100 Subject: finish wall collisions (clipvelocity), some utils --- src/util/input.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/input.h') 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; 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 ) -- cgit v1.2.3