diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-27 11:16:21 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-27 11:16:47 +0200 |
commit | 3f88462ff3c9e21c9c41e0041c861c64c1336344 (patch) | |
tree | fefe995ad4d38b6721fca7f5411d31d28c2e0b7a /tracker-linux-joystick | |
parent | 678c199359318ddaab1123f763e68682fc0d4d34 (diff) |
tracker/linux-joystick: fix build
Diffstat (limited to 'tracker-linux-joystick')
-rw-r--r-- | tracker-linux-joystick/ftnoir_tracker_linux_joystick.cpp | 4 |
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]); } } } |