From fa33270c55d728ae28044350ffaff9f549ba7cf2 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Wed, 23 Aug 2023 10:14:45 +0100 Subject: [PATCH] Fix Mac compilation --- plugins/feature/gs232controller/inputcontroller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/feature/gs232controller/inputcontroller.cpp b/plugins/feature/gs232controller/inputcontroller.cpp index d9b8cf891..4e60d6014 100644 --- a/plugins/feature/gs232controller/inputcontroller.cpp +++ b/plugins/feature/gs232controller/inputcontroller.cpp @@ -15,6 +15,8 @@ // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// +#include + #ifdef QT_GAMEPAD_FOUND #include #include "gamepadinputcontroller.h" @@ -25,7 +27,7 @@ double InputController::getAxisCalibratedValue(int axis, InputControllerSettings *settings, bool highSensitvity) { double value = getAxisValue(axis); - double absValue = abs(value); + double absValue = std::abs(value); double l = settings->m_deadzone[axis] / 100.0; if (absValue < l) { // Set to 0 if in deadzone