-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Rework mobile controls! #260
Conversation
- Separate movement and interaction touch controls - Add new options for touch control types (modern/classic) - Refactor touch interaction handling and event management - Create a new GameInteractionOverlay component for touch interactions for less bugs in future - Update touch controls UI and positioning logic
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
/deploy |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Deployed to Vercel Preview: https://prismarine-fh21miyd1-zaro.vercel.app |
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
/deploy |
Deployed to Vercel Preview: https://prismarine-6qg91vclk-zaro.vercel.app |
User description
PR Type
Enhancement, Bug fix
Description
Refactored mobile controls, separating movement and interaction.
Introduced new touch control options:
modern
andclassic
.Added
GameInteractionOverlay
component for improved touch interaction handling.Updated UI logic and positioning for touch controls.
Fixed various issues related to pointer lock and touch interaction.
Changes walkthrough 📝
10 files
Added camera rotation controls and event handling.
Updated modal stack subscription for UI adjustments.
Refactored and modularized camera movement and pointer lock logic.
Updated GUI options for new touch control types.
Added default options for new touch control types.
Introduced `GameInteractionOverlay` for touch interaction handling.
Updated touch area controls for modern and classic modes.
Adjusted touch controls provider for new control types.
Refactored touch controls to support new movement types.
Integrated `GameInteractionOverlay` into in-game UI.
2 files
Adjusted effects screen container positioning.
Fixed z-index for mobile top buttons with modals.