Skip to content

feat(client): add gamepad controller support#34

Open
RZDESIGN wants to merge 1 commit intohytopiagg:mainfrom
RZDESIGN:gamepad-support
Open

feat(client): add gamepad controller support#34
RZDESIGN wants to merge 1 commit intohytopiagg:mainfrom
RZDESIGN:gamepad-support

Conversation

@RZDESIGN
Copy link
Copy Markdown

@RZDESIGN RZDESIGN commented Mar 6, 2026

Summary

  • add merged hardware, virtual, and gamepad input handling so controller state coexists cleanly with existing desktop and mobile paths
  • add right-stick camera look plus a shared invert-vertical-look setting exposed through the bridge and HytopiaUI
  • fix the left-stick strafe direction and avoid emitting unrelated renderer/settings updates when invert look changes

Test plan

  • Connect a standard gamepad and verify left stick movement, including correct left/right strafing, in the game camera
  • Verify right stick camera look and sprint/button mappings behave as expected alongside keyboard, mouse, and mobile-style virtual input
  • Toggle invert look through the bridge or hytopia.setInvertVerticalLook() and confirm mouse, touch, and controller vertical look all flip together
  • npm run build currently fails on pre-existing TypeScript errors in unrelated client files such as Entity.ts, GLTFManager.ts, NetworkManager.ts, and heartbeat.ts

Made with Cursor

Unify hardware, virtual, and gamepad input so controller actions can coexist cleanly across desktop and mobile control paths. Also adds invert-look camera support without triggering unrelated renderer settings updates.

Made-with: Cursor
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.

1 participant