diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-30 13:42:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 13:42:45 +0200 |
commit | bc0f5d3dde0f847dffdad927157a209271ced923 (patch) | |
tree | ee0957115d6e9367f04fb4941243c7b6f69d4b6f /core/input | |
parent | 70871c6b38feeff949cce95529de440f12c21db6 (diff) | |
parent | 41c1cfe28e8889e36cdd71141462b85174d8c261 (diff) |
Merge pull request #53251 from LATRio/53224
Diffstat (limited to 'core/input')
-rw-r--r-- | core/input/input_event.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp index c2a9d30fff..1d2b5f19ee 100644 --- a/core/input/input_event.cpp +++ b/core/input/input_event.cpp @@ -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(); } |