]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGMacOSXEventInput.cxx
Interim windows build fix
[flightgear.git] / src / Input / FGMacOSXEventInput.cxx
index a969fd6e22233f135ab2843a973e285fefe2f0b7..20076ca2712800e26006787153c5db07ab418efd 100644 (file)
@@ -353,7 +353,7 @@ AxisElement::AxisElement(CFDictionaryRef element, long page, long usage) :
 
   name = ((isRelative == true) ? "rel-" : "abs-") + name;
 
-  center = min + (max - abs(min)) * 0.5;
+  center = min + (max - std::abs(min)) * 0.5;
   SG_LOG(SG_INPUT, SG_DEBUG, "HID Axis Element; " << name << " min: " << min << " max:" << max << " center: " << center);
   SG_LOG(SG_INPUT, SG_DEBUG, "isRelative=" << isRelative << ", isWrapping=" << isWrapping << ", isNonLinear=" << isNonLinear);
 }