GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
An event queue. More...
#include <gp_ev_queue.h>
Data Fields | |
unsigned int | screen_w |
A display/window/screen width. | |
unsigned int | screen_h |
A display/window/screen height. | |
uint32_t | cursor_x |
A cursor x position valid for the last event in the queue. | |
uint32_t | cursor_y |
A cursor y position valid for the last event in the queue. | |
gp_keymap * | keymap |
A keymap. | |
gp_ev_feedback * | feedbacks_list |
A list of callbacks to turn on/off leds, e.g. caps lock, and other feedback. | |
gp_events_state | state |
An accumulated state. | |
gp_event | events [32] |
A circular buffer for input events. | |
An event queue.
Definition at line 24 of file gp_ev_queue.h.
gp_keymap* gp_ev_queue::keymap |
A keymap.
This is needed only for backends that does not provide a keymap themselves. This includes framebuffer, Linux DRM, e-ink displays, etc.
Definition at line 47 of file gp_ev_queue.h.
gp_events_state gp_ev_queue::state |
An accumulated state.
Maintains pressed keys, cursor position, etc.
Valid only for event removed by the last call of gp_ev_queue_get().
Definition at line 59 of file gp_ev_queue.h.