summaryrefslogtreecommitdiff
path: root/core/input
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-30 13:42:45 +0200
committerGitHub <noreply@github.com>2021-09-30 13:42:45 +0200
commitbc0f5d3dde0f847dffdad927157a209271ced923 (patch)
treeee0957115d6e9367f04fb4941243c7b6f69d4b6f /core/input
parent70871c6b38feeff949cce95529de440f12c21db6 (diff)
parent41c1cfe28e8889e36cdd71141462b85174d8c261 (diff)
Merge pull request #53251 from LATRio/53224
Diffstat (limited to 'core/input')
-rw-r--r--core/input/input_event.cpp2
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();
}