Skip to content

Add gamepad controls and refine mobile gestures and automap - #9

Merged
xenorune merged 4 commits into
mainfrom
dtcristo/gamepad-controls
Oct 3, 2026
Merged

xenorune merged 4 commits into
mainfrom
dtcristo/gamepad-controls

Conversation

@xenorune

@xenorune xenorune commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Add native and web controller input, including stickless controllers. D-pad up/down walks, left/right turns, and bumpers strafe. Y swaps horizontal D-pad/bumpers; sticks keep analog movement and turning. A jumps, B holds crouch, L3 toggles crouch, and Select cycles automap. Focus loss/disconnect clear held input; refocusing requires release.

Touch now assigns the first finger by its starting half and the second the opposite control anywhere. Roles stay fixed until release. Turning is 50% faster. Automap cycles Off → Relative → Absolute; front-only modes and their clipping work are removed.

Validation: cargo fmt, all-feature cargo check/test (150 Rust tests), 18 Node tests, release WASM build, and Computer Use browser integration in portrait/landscape through real listeners and Rust player state. Standard and common raw USB SNES gamepads were simulated; physical controller/phone testing remains a follow-up.

dtcristo and others added 4 commits October 3, 2026 15:05
Use analog sticks for movement/look and D-pad/bumpers for stickless play.
Bind jump, hold/toggle crouch and automap; Y swaps D-pad and bumper roles.
Queue action edges once, cap diagonal speed and clear held input on interruption.
Support platform mappings natively and standard plus eight-button SNES profiles on web.

Co-authored-by: Xeno <xeno@xenorune.com>
Use bumpers for strafing and let Y swap horizontal roles, matching the
requested default without changing analog stick bindings.

Co-authored-by: Xeno <xeno@xenorune.com>
Cycle through off, player-relative and north-up full maps. Remove the
front-only modes and their unused per-wall frustum clipping work.

Co-authored-by: Xeno <xeno@xenorune.com>
Keep movement and look roles stable regardless of where the second finger
lands, including replacing a lifted finger. Increase touch turning by 50%
and document the full-map cycle and final controller defaults.

Cover both same-side orders and replacement contacts in gesture tests.

Co-authored-by: Xeno <xeno@xenorune.com>
@xenorune
xenorune marked this pull request as ready for review October 3, 2026 05:19
@xenorune
xenorune merged commit 4385e64 into main Oct 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants