Skip to content

Prevent virtual keyboard events from hiding the virtual joystick - #2949

Open
terranprog wants to merge 2 commits into
jMonkeyEngine:masterfrom
terranprog:fix/virtual-keyboard-joystick
Open

Prevent virtual keyboard events from hiding the virtual joystick#2949
terranprog wants to merge 2 commits into
jMonkeyEngine:masterfrom
terranprog:fix/virtual-keyboard-joystick

Conversation

@terranprog

@terranprog terranprog commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Fix for #2948

This PR adds extra checks to make sure only a real physical keyboard can cause the virtual joystick to disappear when in VIRTUAL_JOYSTICK_AUTO mode.

Disclaimer: I asked A.I. to diagnose this observed issue and it suggested the following code fix. I have run my app with this code change and have not seen the issue reoccur. I did not write the fix myself but it makes sense as far as I can tell.

@riccardobl

Copy link
Copy Markdown
Member

I added a commit to this PR.
This was basically the correct patch, it only needed some tweaks to be compatible with android < 16.

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.

2 participants