Copyright (C) 2000-2012 |
Manpages SDL_KeyboardEventSection: SDL API Reference (3)Updated: Tue 11 Sep 2001, 22:59 Index Return to Main Contents NAMESDL_KeyboardEvent- Keyboard event structureSTRUCTURE DEFINITION
typedef struct{ Uint8 type; Uint8 state; SDL_keysym keysym; } SDL_KeyboardEvent; STRUCTURE DATA
DESCRIPTIONSDL_KeyboardEvent is a member of the SDL_Event union and is used when an event of type SDL_KEYDOWN or SDL_KEYUP is reported. The type and state actually report the same information, they just use different values to do it! A keyboard event occurs when a key is released (type=SDK_KEYUP or state=SDL_RELEASED) and when a key is pressed (type=SDL_KEYDOWN or state=SDL_PRESSED). The information on what key was pressed or released is in the keysym structure.
SEE ALSOSDL_Event, SDL_keysym, SDL_EnableKeyRepeat, SDL_EnableUNICODE
IndexThis document was created by man2html, using the manual pages. Time: 23:24:53 GMT, April 25, 2024 |