Skip to content

Feature Request: Floating Analog #17

Description

@vikasmistry

Is your feature request related to a problem? Please describe.
Users cannot reposition the joysticks dynamically while playing. Many modern mobile gamepads support a "Floating" mode where the joystick centers itself wherever the thumb lands.

Describe the solution you'd like
I would like to propose adding a "Floating Joystick" option in the settings.

  • Floating Mode (New Default?): The joystick appears/re-centers at the location of the initial touch within its zone.
  • Fixed Mode: The classic behavior where the joystick stays at a fixed coordinate.

Describe alternatives you've considered
increasing the scale of joysticks, but it can be inconsistent and can overlap other buttons

Additional context
During my own attempts to implement this, I also discovered potential stability issues in the existing AnalogStick gesture handling:

  • Multi-touch Crash: Using both sticks simultaneously and releasing one can sometimes cause a crash due to gesture conflicts.

  • Haptic Flooding: Holding a stick at the edge can flood the system with vibration commands, potentially causing lag or crashes.

  • NaN Errors: In rare layout passes, coordinate calculations can result in NaN, causing a IllegalArgumentException: Cannot round NaN value.

floating_joystics.2.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions