Skip to content

Feature - Mouse devices on android#2597

Open
joliver82 wants to merge 3 commits intojMonkeyEngine:masterfrom
joliver82:feature_mouse_devices_on_android
Open

Feature - Mouse devices on android#2597
joliver82 wants to merge 3 commits intojMonkeyEngine:masterfrom
joliver82:feature_mouse_devices_on_android

Conversation

@joliver82
Copy link
Contributor

This pull request adds mouse device support to android. (Issue #2173 )

In addition to specific android code, I had to add a new method "setMouseGrab" to both InputManager and MouseInput (and classes implemeting it).

This changed was done because when Android changes to grab/capture mode while dragging all events after mouse down are ignored till mouse up is received. FlyByCamera and ChaseCamera changes visibility while dragging if set dragToRotate=true. So changing grab state in setVisibility method avoids being able to move the camera in this mode. Also I wanted to be able to properly capture the mouse if the game requires it like jme3 works on desktop when running setVisibility(false)

Jesus Oliver added 3 commits February 6, 2026 01:15
Added setMouseGrab method to both MouseInput and InputManager. Android cannot change to grab/capture mode while dragging, all events after mouse down are ignored till mouse up is received
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