Skip to content

v2.2.7

Choose a tag to compare

@github-actions github-actions released this 28 Oct 17:06
· 11 commits to main since this release

Gamepad components

  • Add DmControllerView, DmXboxControllerView, DmPs5ControllerView, and DmSwitchProControllerView to duskmoon_widgets, also exported by duskmoon_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_widgets tests 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.