#[DEV-10256] controller disconnect in gameplay bricks cursor to hide persistent through sys restart.

5 messages · Page 1 of 1 (latest)

little topaz
#

Steps to Reproduce:

Start a game.
During gameplay, disconnect the controller by either unplugging it or letting it die.
Reconnect the controller.
exit the game after game end via main menu exit using the gamepad.
Note that the issue persists even after a system restart.
To resolve the issue, unplug and replug the mouse.

left fjord
#

Something similar happens on console (Xbox) as well. Have to restart the game to regain controller input.

little topaz
#

Plausible Causes for Input Issues:

  • Device Prioritization Bugs: Controller input may be prioritized, but the game fails to fall back to mouse/keyboard after a disconnection.
    Input Focus Lock: The game doesn’t release focus from a disconnected device, ignoring other inputs.
  • Residual Input States: Cached input data (like cursor position or button presses) isn’t cleared during transitions or on exit.
  • Event Handling Gaps: Missing edge cases like mid-game disconnections or battery loss, leaving the input system in an undefined state.
    Suggestions: Test for mixed input scenarios, handle disconnections gracefully, and ensure the input device list refreshes dynamically.
#

I did notice that on PC it takes quite a while for the engine to register that a controller has been disconnected. This probably indicates a code smell where you have a poll instead of a proper event.