Repository navigation
v2.2.7
Gamepad components
- Add
DmControllerView,DmXboxControllerView,DmPs5ControllerView, andDmSwitchProControllerViewtoduskmoon_widgets, also exported byduskmoon_ui. - Keep each model in its own file with shared rendering and input handling.
- Support continuous two-axis stick movement, circular clamping, independent multi-touch controls, and external hardware state.
- Hold Xbox/PS5 triggers to increase travel and release to decrease at the same linear rate: one second for a full 0–1 range. Re-pressing reverses from the current value. Switch Pro triggers remain digital.
- Display optional left/right trigger meters and percentages with
showTriggerIndicators.
Example
Open Widgets → Gamepads (/widgets/gamepads) in example/design_preview for live stick coordinates, trigger travel, button feedback, and per-model meter toggles.
Validation
- 745
duskmoon_widgetstests and 23 showcase tests passed locally. - Linux workspace CI and tests passed, with exact host-specific screenshot baselines.
- Mobile/desktop layouts and light/dark themes are covered.