GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_ev_key Struct Reference

A key press/release/repeat event. More...

#include <gp_event.h>

Data Fields

uint32_t key
 One of enum gp_event_key_value.
 
uint32_t utf
 Unicode character (finalized) by this keystroke.
 

Detailed Description

A key press/release/repeat event.

Definition at line 163 of file gp_event.h.

Field Documentation

◆ key

uint32_t gp_ev_key::key

One of enum gp_event_key_value.

This is the raw key scancode. It can be set to zero if this is a synthetic unicode character.

Definition at line 170 of file gp_event.h.

◆ utf

uint32_t gp_ev_key::utf

Unicode character (finalized) by this keystroke.

If non-zero the key press was translated into a character by current keyboard mapping.

Definition at line 177 of file gp_event.h.

Referenced by gp_ev_utf_is_ctrl().


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