Skip to content

Add native touch rotation to FlyByCamera - #2943

Open
riccardobl with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-mouse-keyboard-emulation-defaults
Open

Add native touch rotation to FlyByCamera#2943
riccardobl with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-mouse-keyboard-emulation-defaults

Conversation

Copilot AI commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Android FlyByCamera rotation previously depended on emulated mouse events. With mouse emulation disabled by default, touch drag no longer rotates the camera.

  • Touch input

    • Register a TouchTrigger in FlyByCamera.
    • Handle touch MOVE events directly through TouchListener.
  • Rotation behavior

    • Convert touch deltas using the existing mouse-equivalent scale.
    • Preserve inverted-Y behavior.
    • Allow touch dragging when dragToRotate is enabled.
flyCam.onTouch("FLYCAM_Touch",
        new TouchEvent(TouchEvent.Type.MOVE, 0f, 0f, 128f, 0f), 0f);

Copilot AI and others added 2 commits August 30, 2026 08:43
Co-authored-by: riccardobl <4943530+riccardobl@users.noreply.github.com>
Co-authored-by: riccardobl <4943530+riccardobl@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix mouse and keyboard emulation defaults in Android 3.10.0 Add native touch rotation to FlyByCamera Aug 30, 2026
Copilot AI requested a review from riccardobl August 30, 2026 08:45
@riccardobl
riccardobl marked this pull request as ready for review August 30, 2026 08:50
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.

Android: Mouse and Keyboard are no longer emulated by default in 3.10.0

2 participants