mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
Allow JOY_AXIS_INVALID in InputEventJoypadMotion's axis
This commit is contained in:
parent
6681f2563b
commit
3ecf346f12
@ -1088,7 +1088,7 @@ void InputEventMouseMotion::_bind_methods() {
|
|||||||
///////////////////////////////////
|
///////////////////////////////////
|
||||||
|
|
||||||
void InputEventJoypadMotion::set_axis(JoyAxis p_axis) {
|
void InputEventJoypadMotion::set_axis(JoyAxis p_axis) {
|
||||||
ERR_FAIL_COND(p_axis < JoyAxis::LEFT_X || p_axis > JoyAxis::MAX);
|
ERR_FAIL_COND(p_axis < JoyAxis::INVALID || p_axis > JoyAxis::MAX);
|
||||||
|
|
||||||
axis = p_axis;
|
axis = p_axis;
|
||||||
emit_changed();
|
emit_changed();
|
||||||
|
Loading…
Reference in New Issue
Block a user