summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-27 11:16:21 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-27 11:16:47 +0200
commit3f88462ff3c9e21c9c41e0041c861c64c1336344 (patch)
treefefe995ad4d38b6721fca7f5411d31d28c2e0b7a
parent678c199359318ddaab1123f763e68682fc0d4d34 (diff)
tracker/linux-joystick: fix build
-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]);
}
}
}