Event

sapp_event

This is an all-in-one event struct passed to the event handler user callback function. Note that it depends on the event type what struct fields actually contain useful values, so you should first check the event type before reading other struct fields

Members

Variables

char_code
uint char_code;
Undocumented in source.
frame_count
ulong frame_count;
Undocumented in source.
framebuffer_height
int framebuffer_height;
Undocumented in source.
framebuffer_width
int framebuffer_width;
Undocumented in source.
key_code
Keycode key_code;
Undocumented in source.
key_repeat
bool key_repeat;
Undocumented in source.
modifiers
uint modifiers;
Undocumented in source.
mouse_button
Mousebutton mouse_button;
Undocumented in source.
mouse_dx
float mouse_dx;
Undocumented in source.
mouse_dy
float mouse_dy;
Undocumented in source.
mouse_x
float mouse_x;
Undocumented in source.
mouse_y
float mouse_y;
Undocumented in source.
num_touches
int num_touches;
Undocumented in source.
scroll_x
float scroll_x;
Undocumented in source.
scroll_y
float scroll_y;
Undocumented in source.
touches
Touchpoint[8] touches;
Undocumented in source.
type
EventType type;
Undocumented in source.
window_height
int window_height;
Undocumented in source.
window_width
int window_width;
Undocumented in source.

Meta