You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix joystick crash when mapping is -1
This commit is contained in:
committed by
Rémi Verschelde
parent
2ac0cf568d
commit
200c84b6b2
@@ -912,6 +912,7 @@ void InputDefault::joy_axis(int p_device, int p_axis, const JoyAxis &p_value) {
|
||||
|
||||
if (joy.mapping == -1) {
|
||||
_axis_event(p_device, p_axis, val);
|
||||
return;
|
||||
};
|
||||
|
||||
Map<int, JoyEvent>::Element *el = map_db[joy.mapping].axis.find(p_axis);
|
||||
|
||||
Reference in New Issue
Block a user