mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
InputEventJoypadMotion::set_axis - reject invalid axis
This commit is contained in:
parent
4a9a231566
commit
41c1cfe28e
@ -864,6 +864,8 @@ void InputEventMouseMotion::_bind_methods() {
|
||||
///////////////////////////////////
|
||||
|
||||
void InputEventJoypadMotion::set_axis(JoyAxis p_axis) {
|
||||
ERR_FAIL_INDEX(p_axis, JOY_AXIS_MAX);
|
||||
|
||||
axis = p_axis;
|
||||
emit_changed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user