Wiki Page Content

Revision 11 as of 2011-01-17 18:12:49

Clear message

DRAFT

SDL_KeyboardEvent

A structure that contains keyboard button event information.

Data Fields

Uint32

type

SDL_KEYDOWN or SDL_KEYUP

Uint32

windowID

the window with keyboard focus, if any

Uint8

state

SDL_PRESSED or SDL_RELEASED

Uint8

repeat

non-zero if this is a key repeat

SDL_keysym

keysym

the SDL_keysym representing the key that was pressed or released

Code Examples

You can add your code example here

Remarks

SDL_KeyboardEvent is a member of the SDL_Event structure and is used when an event of type SDL_KEYDOWN or SDL_KEYUP is reported.

An SDL_KEYDOWN or SDL_KEYUP event occurs whenever a user presses or releases a button on a keyboard. The information on what key was pressed or released is in the keysym member.

Note: Repeating SDL_KEYDOWN events will occur if key repeat is enabled (see SDL_EnableKeyRepeat). green

green


CategoryStruct, CategoryEvents

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit