Repository navigation
Add gamepad controls and refine mobile gestures and automap - #9
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 3, 2026 05:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.