GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
An input event. More...
#include <gp_event.h>
Data Fields | ||
uint16_t | type | |
enum gp_event_type | ||
uint16_t | code | |
enum gp_event_*_code | ||
union { | ||
int32_t val | ||
A generic integer value. | ||
struct gp_ev_key key | ||
A keyboard or mouse key. | ||
struct gp_ev_pos_rel rel | ||
A relative change in position. | ||
struct gp_ev_pos_abs abs | ||
An absolute position. | ||
struct gp_ev_sys sys | ||
A system event. | ||
struct gp_ev_utf utf | ||
An unicode input event. | ||
gp_timer * tmr | ||
A timer expired event. | ||
}; | ||
uint64_t | time | |
An event timestamp. | ||
struct gp_events_state * | st | |
Pointer to overall state, pressed keys, cursor position etc. | ||
An input event.
Definition at line 153 of file gp_event.h.
union { ... } gp_event |
Input event values.