|
SDL
2.0
|
#include "../../SDL_internal.h"#include "../../events/SDL_keyboard_c.h"#include "SDL_scancode.h"#include "SDL_events.h"#include "sdl_qnx.h"#include <sys/keycodes.h>
Include dependency graph for keyboard.c:Go to the source code of this file.
Functions | |
| void | handleKeyboardEvent (screen_event_t event) |
Variables | |
| static int | key_to_sdl [] |
| void handleKeyboardEvent | ( | screen_event_t | event | ) |
Called from the event dispatcher when a keyboard event is encountered. Translates the event such that it can be handled by SDL.
| event | Screen keyboard event |
Definition at line 99 of file keyboard.c.
References key_to_sdl, SDL_PRESSED, SDL_RELEASED, SDL_SendKeyboardKey(), and SDL_TABLESIZE.
Referenced by pumpEvents().
|
static |
A map thta translates Screen key names to SDL scan codes. This map is incomplete, but should include most major keys.
Definition at line 33 of file keyboard.c.
Referenced by handleKeyboardEvent().