diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-22 12:54:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:01:53 +0200 |
commit | f50ac3549d6a7f1199fa012e4b03f581bc8d305b (patch) | |
tree | 50ff044f1c618119c88544709808f533ed02225e /proto-mouse/ftnoir_protocol_mouse.cpp | |
parent | d61eb905ae3fa161d50821d01ee47915713e89c2 (diff) |
core, modules: modernize syntax only
Use more C++17 features where this helps any.
Diffstat (limited to 'proto-mouse/ftnoir_protocol_mouse.cpp')
-rw-r--r-- | proto-mouse/ftnoir_protocol_mouse.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/proto-mouse/ftnoir_protocol_mouse.cpp b/proto-mouse/ftnoir_protocol_mouse.cpp index 9e782384..2bf91a84 100644 --- a/proto-mouse/ftnoir_protocol_mouse.cpp +++ b/proto-mouse/ftnoir_protocol_mouse.cpp @@ -23,7 +23,7 @@ static const double invert[] = 1., -1., 1. }; -void mouse::pose(const double *headpose) +void mouse::pose(const double* headpose) { const int axis_x = s.Mouse_X - 1; const int axis_y = s.Mouse_Y - 1; @@ -82,6 +82,4 @@ int mouse::get_value(double val, double sensitivity, bool is_rotation) return iround(val * c * sensitivity * sgn[unsigned(is_rotation)]); } -mouse::mouse() : last_x(0), last_y(0) {} - OPENTRACK_DECLARE_PROTOCOL(mouse, MOUSEControls, mouseDll) |