godot
godot copied to clipboard
Remove a non-xinput device joymapping cause game crash
Tested versions
godot 4.2 godot 3.6
System information
windows 10
Issue description
When multi joypad connect and has a xinput joypad and a non-xinput joypad, remove the non-xinput joypad mapping then press any button on xinput-joypad cause game crash, pop a ERROR: FATAL: Index p_index = 754 is out of bounds (size() = 754). <-- the line in gamecontrollerdb and this line has the xinput mapping looks like it remove xinput and cannot find it.
Steps to reproduce
You should at least has 2 joypad to reproduce this. Use Input.remove_joy_mapping remove a non-xinput joypad mapping. then press any button/axis on xinput joypad, game should crash immediate