Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_KeyboardEvent(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_!KeyboardEvent !!!SDL_!KeyboardEvent NAME STRUCTURE DEFINITION STRUCTURE DATA DESCRIPTION SEE ALSO ---- !!NAME SDL_!KeyboardEvent- Keyboard event structure !!STRUCTURE DEFINITION typedef struct{ Uint8 type; Uint8 state; SDL_keysym keysym; } SDL_!KeyboardEvent; !!STRUCTURE DATA __type SDL_KEYDOWN__ or __SDL_KEYUP__ __state SDL_PRESSED__ or __SDL_RELEASED__ __keysym__ Contains key press information !!DESCRIPTION __SDL_!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. __Note:__ Repeating __SDL_KEYDOWN__ events will occur if key repeat is enabled (see __SDL_!EnableKeyRepeat__). !!SEE ALSO __SDL_Event__, __SDL_keysym__, __SDL_!EnableKeyRepeat__, __SDL_EnableUNICODE__ ----
One page links to
SDL_KeyboardEvent(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.