You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
InputEventJoypadMotion::set_axis - reject invalid axis
This commit is contained in:
@@ -864,6 +864,8 @@ void InputEventMouseMotion::_bind_methods() {
|
|||||||
///////////////////////////////////
|
///////////////////////////////////
|
||||||
|
|
||||||
void InputEventJoypadMotion::set_axis(JoyAxis p_axis) {
|
void InputEventJoypadMotion::set_axis(JoyAxis p_axis) {
|
||||||
|
ERR_FAIL_INDEX(p_axis, JOY_AXIS_MAX);
|
||||||
|
|
||||||
axis = p_axis;
|
axis = p_axis;
|
||||||
emit_changed();
|
emit_changed();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user