jMonkeyEngine / jMonkeyEngine/jmonkeyengine

Android: Virtual Joystick showing by default in 3.10.0

Open Beginner friendly
#2,928 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Documentation
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.