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