From dd5e6b19df9206f461614920a9a6e0f6d71d73ce Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 16 Apr 2023 15:39:48 +0200 Subject: [PATCH] Fix warning on clang. --- main/input_default.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/input_default.cpp b/main/input_default.cpp index 6232b5151..7d44a8931 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -1061,7 +1061,7 @@ InputDefault::JoyEvent InputDefault::_get_mapped_axis_event(const JoyDeviceMappi return event; } -void InputDefault::_get_mapped_hat_events(const JoyDeviceMapping &mapping, int p_hat, JoyEvent r_events[]) { +void InputDefault::_get_mapped_hat_events(const JoyDeviceMapping &mapping, int p_hat, JoyEvent r_events[HAT_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) {