diff options
Diffstat (limited to 'proto-vjoystick/vjoystick.cpp')
| -rw-r--r-- | proto-vjoystick/vjoystick.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/proto-vjoystick/vjoystick.cpp b/proto-vjoystick/vjoystick.cpp index 2962a393..292e8259 100644 --- a/proto-vjoystick/vjoystick.cpp +++ b/proto-vjoystick/vjoystick.cpp @@ -88,7 +88,7 @@ int vjoystick::to_axis_value(unsigned axis_id, double val) const      const double min = axis_min[axis_id];      const double max = axis_max[axis_id]; -    return (int)(clamp((val+minmax) * max / (2*minmax) - min, min, max)); +    return (int)(std::clamp((val+minmax) * max / (2*minmax) - min, min, max));  }  vjoystick::vjoystick() = default; | 
