SDL
2.0
|
Go to the source code of this file.
Functions | |
static void | quit (int rc) |
static void | print_string (char **text, size_t *maxlen, const char *fmt,...) |
static void | print_modifiers (char **text, size_t *maxlen) |
static void | PrintModifierState () |
static void | PrintKey (SDL_Keysym *sym, SDL_bool pressed, SDL_bool repeat) |
static void | PrintText (char *eventtype, char *text) |
void | loop () |
int | main (int argc, char *argv[]) |
Variables | |
int | done |
void loop | ( | ) |
Definition at line 152 of file checkkeys.c.
References SDL_MouseButtonEvent::button, SDL_Event::button, done, SDL_Event::key, SDL_KeyboardEvent::keysym, PrintKey(), PrintText(), SDL_KeyboardEvent::repeat, SDL_BUTTON_LEFT, SDL_FALSE, SDL_IsTextInputActive, SDL_KEYDOWN, SDL_KEYUP, SDL_Log, SDL_MOUSEBUTTONDOWN, SDL_PollEvent, SDL_PRESSED, SDL_QUIT, SDL_StartTextInput, SDL_StopTextInput, SDL_TEXTEDITING, SDL_TEXTINPUT, SDL_TRUE, SDL_KeyboardEvent::state, SDL_TextInputEvent::text, SDL_Event::text, and SDL_Event::type.
Referenced by iteration(), and main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 199 of file checkkeys.c.
References done, loop(), PrintModifierState(), quit(), SDL_CreateWindow, SDL_GetError, SDL_GL_CreateContext, SDL_Init, SDL_INIT_VIDEO, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_PumpEvents, SDL_Quit, SDL_StartTextInput, and SDL_WINDOWPOS_CENTERED.
Definition at line 58 of file checkkeys.c.
References KMOD_CAPS, KMOD_LALT, KMOD_LCTRL, KMOD_LGUI, KMOD_LSHIFT, KMOD_MODE, KMOD_NUM, KMOD_RALT, KMOD_RCTRL, KMOD_RGUI, KMOD_RSHIFT, print_string(), and SDL_GetModState.
Referenced by PrintKey(), and PrintModifierState().
Definition at line 39 of file checkkeys.c.
References SDL_vsnprintf.
Referenced by print_modifiers(), and PrintKey().
|
static |
Definition at line 106 of file checkkeys.c.
References print_modifiers(), print_string(), SDL_Keysym::scancode, SDL_GetKeyName, SDL_GetScancodeName, SDL_Log, and SDL_Keysym::sym.
Referenced by loop().
|
static |
Definition at line 92 of file checkkeys.c.
References print_modifiers(), and SDL_Log.
Referenced by main().
|
static |
Definition at line 138 of file checkkeys.c.
References SDL_Log, SDL_snprintf, and SDL_strlen.
Referenced by loop().
|
static |
int done |
Definition at line 28 of file checkkeys.c.
Referenced by CPU_haveCPUID(), loop(), main(), run_automated_tests(), SDL_LoadBMP_RW(), SDL_LoadFile_RW(), SDL_LoadWAV_RW(), SDL_RLEAlphaBlit(), SDL_RLEBlit(), SDL_vsnprintf(), SDL_vsscanf(), test_multi_audio(), and WatchJoystick().