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

An input event. More...

#include <gp_event.h>

Collaboration diagram for gp_event:
Collaboration graph
[legend]

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_statest
 Pointer to overall state, pressed keys, cursor position etc.
 

Detailed Description

An input event.

Definition at line 153 of file gp_event.h.

Field Documentation

◆ [union]

union { ... } gp_event

Input event values.


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