mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 09:31:34 +00:00
InputEventJoypadMotion::set_axis - reject invalid axis
This commit is contained in:
parent
4a9a231566
commit
41c1cfe28e
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue