diff options
Diffstat (limited to 'proto-mouse')
-rw-r--r-- | proto-mouse/ftnoir_protocol_mouse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-mouse/ftnoir_protocol_mouse.cpp b/proto-mouse/ftnoir_protocol_mouse.cpp index 5e8a7bc1..d03c6c66 100644 --- a/proto-mouse/ftnoir_protocol_mouse.cpp +++ b/proto-mouse/ftnoir_protocol_mouse.cpp @@ -74,8 +74,8 @@ int mouse::get_delta(int val, int prev) int mouse::get_value(double val, double sensitivity, bool is_rotation) { - static constexpr double c = 1e-1; static constexpr double sgn[] = { 1e-2, 1 }; + constexpr double c = 1e-1; return iround(val * c * sensitivity * sgn[unsigned(is_rotation)]); } |