Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.37 KB

File metadata and controls

17 lines (11 loc) · 1.37 KB

Independent Switch2Kit example

Switch2KitDemo imports the stable library, not the dashboard. It uses the public Switch2ActionRouter navigation preset; there is no separate example-only routing module.

Build with macOS/Xcode 26+:

swift build --product Switch2KitDemo
bash scripts/build-switch2kit-demo.sh
open build/Switch2KitDemo.app

Quit the dashboard or any other process owning the same controller. The bundled demo supplies its own Bluetooth usage description and ad-hoc signature. Allow Bluetooth, choose Find Controllers for 60 Seconds, and hold Sync. It shows Bluetooth/discovery, physical models, live buttons/sticks/triggers/battery, disconnect and supported short rumble.

Use arrows/Return/Escape or D-pad/A/B to navigate the nine-item grid. Release controls after focus/reconnect changes. Native GameController.framework snapshots are another input provider to the same semantic router. No synthetic global keyboard/mouse events, Accessibility approval or virtual HID device are involved. Inactive navigation is suppressed; stop/sleep/termination cancel host timers/monitors and retire library sessions.

See navigation behavior and tests, permissions and lifecycle. Physical radio/controller behavior is not established by a successful example build.