summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tracker-linux-joystick/ftnoir_tracker_linux_joystick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-linux-joystick/ftnoir_tracker_linux_joystick.cpp b/tracker-linux-joystick/ftnoir_tracker_linux_joystick.cpp
index 8fa600e7..54d9b059 100644
--- a/tracker-linux-joystick/ftnoir_tracker_linux_joystick.cpp
+++ b/tracker-linux-joystick/ftnoir_tracker_linux_joystick.cpp
@@ -78,8 +78,8 @@ void joystick::data(double *data)
if (k < 0 || k >= 8)
data[i] = 0;
else
- data[i] = clamp(axes[k] * limits[i] / AXIS_MAX,
- -limits[i], limits[i]);
+ data[i] = std::clamp(axes[k] * limits[i] / AXIS_MAX,
+ -limits[i], limits[i]);
}
}
}