System internal event codes. Application should use codes beyond 255.
Enumerator |
---|
EVENT_CODE_APPLICATION_QUIT | Shuts the application down on the next frame.
|
EVENT_CODE_KEY_PRESSED | Keyboard key pressed. Context usage: u16 key_code = data.data.u16[0]; u16 repeat_count = data.data.u16[1];.
|
EVENT_CODE_KEY_RELEASED | Keyboard key released. Context usage: u16 key_code = data.data.u16[0]; u16 repeat_count = data.data.u16[1];.
|
EVENT_CODE_BUTTON_PRESSED | Mouse button pressed. Context usage: u16 button = data.data.u16[0]; u16 x = data.data.i16[1]; u16 y = data.data.i16[2];.
|
EVENT_CODE_BUTTON_RELEASED | Mouse button released. Context usage: u16 button = data.data.u16[0]; u16 x = data.data.i16[1]; u16 y = data.data.i16[2];.
|
EVENT_CODE_BUTTON_CLICKED | Mouse button pressed then released. Context usage: u16 button = data.data.u16[0]; u16 x = data.data.i16[1]; u16 y = data.data.i16[2];.
|
EVENT_CODE_MOUSE_MOVED | Mouse moved. Context usage: u16 x = data.data.i16[0]; u16 y = data.data.i16[1];.
|
EVENT_CODE_MOUSE_WHEEL | Mouse moved. Context usage: ui z_delta = data.data.i8[0];.
|
EVENT_CODE_WINDOW_RESIZED | Resized/resolution of a window changed from the OS. Context usage: u16 width = data.data.u16[0]; u16 height = data.data.u16[1]; Sender is the window itself.
|
EVENT_CODE_SET_RENDER_MODE | |
EVENT_CODE_DEBUG0 | Special-purpose debugging event. Context will vary over time.
|
EVENT_CODE_DEBUG1 | Special-purpose debugging event. Context will vary over time.
|
EVENT_CODE_DEBUG2 | Special-purpose debugging event. Context will vary over time.
|
EVENT_CODE_DEBUG3 | Special-purpose debugging event. Context will vary over time.
|
EVENT_CODE_DEBUG4 | Special-purpose debugging event. Context will vary over time.
|
EVENT_CODE_DEBUG5 | |
EVENT_CODE_DEBUG6 | |
EVENT_CODE_DEBUG7 | |
EVENT_CODE_DEBUG8 | |
EVENT_CODE_DEBUG9 | |
EVENT_CODE_DEBUG10 | |
EVENT_CODE_DEBUG11 | |
EVENT_CODE_DEBUG12 | |
EVENT_CODE_DEBUG13 | |
EVENT_CODE_DEBUG14 | |
EVENT_CODE_DEBUG15 | |
EVENT_CODE_OBJECT_HOVER_ID_CHANGED | The hovered-over object id, if there is one. Context usage: i32 id = context.data.u32[0]; - will be INVALID ID if nothing is hovered over.
|
EVENT_CODE_DEFAULT_RENDERTARGET_REFRESH_REQUIRED | An event fired by the renderer backend to indicate when any render targets associated with the default window resources need to be refreshed (i.e. a window resize)
|
EVENT_CODE_KVAR_CHANGED | An event fired by the kvar system when a kvar has been updated. Context usage: kvar_change* change = context.data.custom_data.data;.
|
EVENT_CODE_MOUSE_DRAGGED | An event fired while a button is being held down and the mouse is moved.
Context usage: i16 x = context.data.i16[0] i16 y = context.data.i16[1] u16 button = context.data.u16[2]
|
EVENT_CODE_MOUSE_DRAG_BEGIN | An event fired when a button is pressed and a mouse movement is done while it is pressed.
Context usage: i16 x = context.data.i16[0] i16 y = context.data.i16[1] u16 button = context.data.u16[2]
|
EVENT_CODE_MOUSE_DRAG_END | An event fired when a button is released was previously dragging.
Context usage: i16 x = context.data.i16[0] i16 y = context.data.i16[1] u16 button = context.data.u16[2]
|
MAX_EVENT_CODE | The maximum event code that can be used internally.
|