Skip to main content

Module event

Module event 

Source
Expand description

The raw UI events a Yog screen’s register_ui handler receives, parsed once into UiEvent.

StringEvent
click:X:YUiEvent::Click
drag:X:YUiEvent::Drag
release:X:YUiEvent::Release
move:X:YUiEvent::Move (the cursor moved; newer hosts)
scroll:DYUiEvent::Scroll (positive = up)
key:KEY:MODSUiEvent::Key (GLFW key code and modifier bits)
char:CODEPOINTUiEvent::Char
open:W:HUiEvent::Open (the screen was opened; newer hosts)
closeUiEvent::Close (the screen was closed; newer hosts)

Anything else is UiEvent::Other.

Modules§

keys
GLFW key codes and modifier bits.

Enums§

UiEvent
One parsed UI event — see the module docs.