summaryrefslogtreecommitdiff
path: root/src/systems/input.c
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-19 16:38:56 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-19 16:38:56 +1000
commit6484c94d4efa391c4cefc9538b2ff74fa3207e00 (patch)
tree98b6f7c4ae864f2b935dbe40a1a4c3911ad437c1 /src/systems/input.c
parentefb2d293d5e849fc96e4e386d55a7611795561aa (diff)
fly camera
Diffstat (limited to 'src/systems/input.c')
-rw-r--r--src/systems/input.c6
1 files changed, 6 insertions, 0 deletions
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