oa::input::sdl_events
Module published by the oa::input module.
MdRust public API
Public Types
Public Functions
Public Constants & Variables
Function Documentation
Convert one SDL3 event into a InputEvent. pixel_scale_x / pixel_scale_y convert logical SDL coordinates to physical pixels. Obtain them with window_pixel_scale before calling this. Returns None for SDL events that have no UI representation (timers, audio device changes, etc.).
Compute logical→physical pixel scale for one window. Returns (scale_x, scale_y). Both default to 1.0 when the window is zero-size or the query fails.