From ff825f1e18860d5aa0c761496f1dc0670422715c Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Fri, 19 Jul 2024 16:38:56 +1000 Subject: fly camera --- src/systems/input.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/systems/input.c') diff --git a/src/systems/input.c b/src/systems/input.c index a371ecd..87a0678 100644 --- a/src/systems/input.c +++ b/src/systems/input.c @@ -96,3 +96,9 @@ bool key_is_pressed(keycode key) { return g_input->depressed_keys[key]; } bool key_just_pressed(keycode key) { return g_input->just_pressed_keys[key]; } bool key_just_released(keycode key) { return g_input->just_released_keys[key]; } + +bool MouseBtn_Held() { + return g_input->mouse.prev_left_btn_pressed && g_input->mouse.left_btn_pressed; +} + +mouse_state Input_GetMouseState() { return g_input->mouse; } \ No newline at end of file -- cgit v1.2.3-70-g09d2