From a7a846114e43f6e058ecf83b84c2c58917db7886 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Fri, 3 Jan 2020 13:55:09 -0500 Subject: I'm done with this. --- sdl.glue.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sdl.glue.c') 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); +} -- cgit v1.3