jMonkeyEngine / jMonkeyEngine/jmonkeyengine
Android: Virtual Joystick showing by default in 3.10.0
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 1.2k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 14
Description
Observed Behaviour
After upgrading android app from 3.9.0 to 3.10.0-beta2, a new "virtual joystick" appears on the screen.
It has to be explicitly turned off. Using settings.setVirtualJoystick(AppSettings.VIRTUAL_JOYSTICK_DISABLED);
Expected Behaviour
Virtual joystick should not appear by default.
Caused by #2803 Virtual/on-screen joystick support
"VirtualJoystick can be used to set the virtual joystick mode , defaults to VIRTUAL_JOYSTICK_AUTO"
"VIRTUAL_JOYSTICK_AUTO will automatically display the virtual joystick on mobile, if there is at least one joystick bind registered by the app, and if there is not an hardware joystick connected"
Fix: is to default settings.VirtualJoystick to VIRTUAL_JOYSTICK_DISABLED.
It can be enabled if desired by the application developer.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Android settings implementation and the default value for settings.VirtualJoystick, then review the virtual joystick change described in #2803. Update the default so the virtual joystick is disabled unless an application enables it, and verify that it no longer appears after upgrading without explicit configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100