godot-escoria / escoria-issues

Central Escoria issue tracker
3 stars 0 forks source link

Simplemouse UI Produces Errors with No Gamepad/Joystick Connected #276

Closed BHSDuncan closed 1 year ago

BHSDuncan commented 2 years ago

Describe the bug The Simplemouse UI crashes when the game starts if the system has no gamepad/joystick connected.

To Reproduce Steps to reproduce the behavior:

  1. Start a new Escoria game.
  2. Enable the "Simplemouse UI" (disable all other UIs).
  3. Disconnect any gamepads and/or joysticks from the computer.
  4. Start the game.
  5. See errors in the debug window.

Expected behavior None of the related errors should appear. (See screenshot below.)

Screenshots image

Versions

Additional context This should be an easy fix as it looks as though game.gd at L96 has an unguarded call to disconnect the gamepad, which it shouldn't.

if _is_gamepad_connected:
        _on_gamepad_disconnected()

...should fix it.

BHSDuncan commented 2 years ago

Note that the first error in the screenshot is unrelated.

BHSDuncan commented 1 year ago

This looks to have been addressed at some point. Unable to reproduce when following the steps in the ticket.