My Project
Loading...
Searching...
No Matches
SDL_KeyboardEvent Struct Reference

Keyboard button event structure (event.key.*) More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
Uint32 windowID
 
Uint8 state
 
Uint8 repeat
 
Uint8 padding2
 
Uint8 padding3
 
SDL_Keysym keysym
 

Detailed Description

Keyboard button event structure (event.key.*)

Field Documentation

◆ keysym

SDL_Keysym keysym

The key that was pressed or released

◆ repeat

Uint8 repeat

Non-zero if this is a key repeat

◆ state

Uint8 state

SDL_PRESSED or SDL_RELEASED

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ type

Uint32 type

◆ windowID

Uint32 windowID

The window with keyboard focus, if any


The documentation for this struct was generated from the following file: