diff --git a/src/core/analog_controller.cpp b/src/core/analog_controller.cpp index 33a9d1568..808f7906f 100644 --- a/src/core/analog_controller.cpp +++ b/src/core/analog_controller.cpp @@ -67,7 +67,7 @@ std::optional AnalogController::GetButtonCodeByName(std::string_view button void AnalogController::SetAxisState(s32 axis_code, float value) { - if (axis_code < 0 || axis_code >= static_cast(Button::Count)) + if (axis_code < 0 || axis_code >= static_cast(Axis::Count)) return; // -1..1 -> 0..255