Skip to content

[3.x] When a gamepad is disconnected, input actions are left active #105047

@fractilegames

Description

@fractilegames

Tested versions

Found in Godot v3.6-stable x11.64

System information

Xubuntu 24.04

Issue description

When a gamepad is disconnected, any active input actions with JoyAxis events remain active indefinitely.

I tested this using PS3 and PS4 controllers with wired connection. The engine sees the gamepad disconnection and joy_connection_changed signal is emitted as expected. Gamepad works normally after reconnection.

Steps to reproduce

  • Set up an input action with JoyAxis event
  • Run project with a gamepad connected
  • Deflect a gamepad stick to activate the action and disconnect the gamepad with the stick deflected.

=> The action will stay active (for example Input.get_action_strength() returns 1.0)

Minimal reproduction project (MRP)

GamepadDisconnectTest.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Status

    For team assessment

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions