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:
Start a new Escoria game.
Enable the "Simplemouse UI" (disable all other UIs).
Disconnect any gamepads and/or joysticks from the computer.
Start the game.
See errors in the debug window.
Expected behavior
None of the related errors should appear. (See screenshot below.)
Screenshots
Versions
Escoria: 3.4.4
Godot: 4.0.0-alpha
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()
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:
Expected behavior None of the related errors should appear. (See screenshot below.)
Screenshots
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....should fix it.