diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org> | 2020-01-03 13:55:09 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org> | 2020-01-03 13:55:09 -0500 |
| commit | a7a846114e43f6e058ecf83b84c2c58917db7886 (patch) | |
| tree | ceb2a18c98425b4c1d322f2b13b0b79b96c22e9c /sdl.glue.c | |
| parent | b43bb071d63e427834291ef1242555b82091ce9d (diff) | |
I'm done with this.
Diffstat (limited to 'sdl.glue.c')
| -rw-r--r-- | sdl.glue.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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); +} |