Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

A key event, such as a key press or release. More...

#include <game.h>

Public Attributes

bool pressed
 True if the key is pressed, false if it is released.
 
uint32_t unicode
 If the keypress generates a printing character.
 
GAME_KEY_MOD modifiers
 Modifier keys pressed with the event key.
 

Detailed Description

A key event, such as a key press or release.

Member Data Documentation

◆ modifiers

GAME_KEY_MOD game_key_event::modifiers

Modifier keys pressed with the event key.

◆ pressed

bool game_key_event::pressed

True if the key is pressed, false if it is released.

◆ unicode

uint32_t game_key_event::unicode

If the keypress generates a printing character.

The unicode value contains the character generated. If the key is a non-printing character, e.g. a function or arrow key, the unicode value is zero.


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