summaryrefslogtreecommitdiff
path: root/core/input
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-08-04 13:06:17 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-08-04 13:06:17 +0200
commit55845bac260628788fde2ea431ecaad3ff26d1bc (patch)
treebc7feab899ac0aa3d50403d618815fdd5be25165 /core/input
parent40eafcfab41191cd8e09125aeb825731189642ec (diff)
Fix some array size function definition mismatch.
Diffstat (limited to 'core/input')
-rw-r--r--core/input/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp
index da0c6cb62a..e08647f5ea 100644
--- a/core/input/input.cpp
+++ b/core/input/input.cpp
@@ -1187,7 +1187,7 @@ Input::JoyEvent Input::_get_mapped_axis_event(const JoyDeviceMapping &mapping, J
return event;
}
-void Input::_get_mapped_hat_events(const JoyDeviceMapping &mapping, HatDir p_hat, JoyEvent r_events[]) {
+void Input::_get_mapped_hat_events(const JoyDeviceMapping &mapping, HatDir p_hat, JoyEvent r_events[(size_t)HatDir::MAX]) {
for (int i = 0; i < mapping.bindings.size(); i++) {
const JoyBinding binding = mapping.bindings[i];
if (binding.inputType == TYPE_HAT && binding.input.hat.hat == p_hat) {