summaryrefslogtreecommitdiffhomepage
path: root/src/rodeo.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-04-13 23:40:15 -0400
committerrealtradam <[email protected]>2023-04-13 23:40:15 -0400
commit3387c9fef273f2cc0674ea77ed950c0965299c4e (patch)
tree9d56a18e8e4c27f80b6ca720a3f0b4946ba19501 /src/rodeo.c
parentf250a4090cf4d535a163388fb5faea5ff1ce48e4 (diff)
downloadRodeoKit-3387c9fef273f2cc0674ea77ed950c0965299c4e.tar.gz
RodeoKit-3387c9fef273f2cc0674ea77ed950c0965299c4e.zip
foundation of input system and initial implementation
Diffstat (limited to 'src/rodeo.c')
-rw-r--r--src/rodeo.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rodeo.c b/src/rodeo.c
index d92a9db..dcac005 100644
--- a/src/rodeo.c
+++ b/src/rodeo.c
@@ -2,6 +2,7 @@
// public
#include "rodeo.h"
#include "rodeo_types.h"
+#include "rodeo/input.h"
// private
#include "rodeo_internal.h"
#include "rodeo_internal_types.h"
@@ -315,13 +316,7 @@ rodeo_frame_end(void)
bgfx_frame(false);
- while(SDL_PollEvent(&state.sdl_event))
- {
- if(state.sdl_event.type == SDL_QUIT)
- {
- state.quit = true;
- }
- }
+ state.quit = rodeo_input_events_poll();
#ifndef __EMSCRIPTEN__
irodeo_frame_stall();
#endif