summaryrefslogtreecommitdiff
path: root/sdl.glue.c
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>2020-01-03 13:55:09 -0500
committerJakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>2020-01-03 13:55:09 -0500
commita7a846114e43f6e058ecf83b84c2c58917db7886 (patch)
treeceb2a18c98425b4c1d322f2b13b0b79b96c22e9c /sdl.glue.c
parentb43bb071d63e427834291ef1242555b82091ce9d (diff)
I'm done with this.
Diffstat (limited to 'sdl.glue.c')
-rw-r--r--sdl.glue.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sdl.glue.c b/sdl.glue.c
index 18eceee..89d90cd 100644
--- a/sdl.glue.c
+++ b/sdl.glue.c
@@ -64,10 +64,8 @@ void sdl$delay(uint32_t ms)
SDL_Delay(ms);
}
-// SDL_GetKeyboardState
-// SDL_SCANCODE_{}
-
-// 1 2 3 C 1 2 3 4
-// 4 5 6 D This is emulated with these Q W E R
-// 7 8 9 E keyboard keys --> A S D F
-// A 0 B F Z X C V
+const uint8_t *sdl$getkbd(void)
+{
+ SDL_PumpEvents();
+ return SDL_GetKeyboardState(NULL);
+}