Skip to content

Input system

Keyboard, mouse, gamepad, touch, and stylus input handling. Composable state architecture for per-widget input routing, directional focus traversal, focus ordering, and SDL3 event pipeline.

Key files

  • src/input_state.h, src/input_keyboard_state.h, src/input_mouse_state.h, src/input_gamepad_state.h
  • assets/lua/state-handlers/ — focus, hover, pointer, camera, gamepad, touch, pen handlers
  • assets/lua/input-state-router.fnl, assets/lua/touch-router.fnl

Dependencies

Dev notes

See also