summaryrefslogtreecommitdiffhomepage
path: root/proto-libevdev
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-27 11:23:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-27 11:23:23 +0200
commitdeff5fda016a18fd1d5a8a2b6c0611245757aaff (patch)
tree7e08b3e3d6bd42530452ca325a4038832f8ac000 /proto-libevdev
parent3f88462ff3c9e21c9c41e0041c861c64c1336344 (diff)
fix build harder, also accidental adl
Diffstat (limited to 'proto-libevdev')
-rw-r--r--proto-libevdev/ftnoir_protocol_libevdev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-libevdev/ftnoir_protocol_libevdev.cpp b/proto-libevdev/ftnoir_protocol_libevdev.cpp
index 5b07beff..d357670d 100644
--- a/proto-libevdev/ftnoir_protocol_libevdev.cpp
+++ b/proto-libevdev/ftnoir_protocol_libevdev.cpp
@@ -120,7 +120,7 @@ void evdev::pose(const double* headpose, const double*) {
for (int i = 0; i < 6; i++)
{
int value = (int)(headpose[i] * mid_input / max_value[i] + mid_input);
- int normalized = clamp(value, min_input, max_input);
+ int normalized = std::clamp(value, min_input, max_input);
(void) libevdev_uinput_write_event(uidev, EV_ABS, axes[i], normalized);
}