summaryrefslogtreecommitdiffhomepage
path: root/src/rodeo.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-04-24 00:50:24 -0400
committerrealtradam <[email protected]>2023-04-24 00:50:24 -0400
commitc7d724e4f11abb335efcc0d58639a1b458b77019 (patch)
treea0222fed2f77aa994232abf9df79351548db4e92 /src/rodeo.c
parentdcd867dc95d13e152716e12f6333796dfc84f4ef (diff)
downloadRodeoKit-c7d724e4f11abb335efcc0d58639a1b458b77019.tar.gz
RodeoKit-c7d724e4f11abb335efcc0d58639a1b458b77019.zip
rework input system. first proper interation
Diffstat (limited to 'src/rodeo.c')
-rw-r--r--src/rodeo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rodeo.c b/src/rodeo.c
index dcac005..91ce4f8 100644
--- a/src/rodeo.c
+++ b/src/rodeo.c
@@ -306,6 +306,8 @@ rodeo_frame_begin(void)
irodeo_render_buffer_transient_alloc();
+ state.quit = rodeo_input_events_poll();
+
state.start_frame = state.end_frame;
}
@@ -316,7 +318,6 @@ rodeo_frame_end(void)
bgfx_frame(false);
- state.quit = rodeo_input_events_poll();
#ifndef __EMSCRIPTEN__
irodeo_frame_stall();
#endif