summaryrefslogtreecommitdiffhomepage
path: root/proto-mouse/ftnoir_protocol_mouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'proto-mouse/ftnoir_protocol_mouse.cpp')
-rw-r--r--proto-mouse/ftnoir_protocol_mouse.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/proto-mouse/ftnoir_protocol_mouse.cpp b/proto-mouse/ftnoir_protocol_mouse.cpp
index d57d8809..40e28c32 100644
--- a/proto-mouse/ftnoir_protocol_mouse.cpp
+++ b/proto-mouse/ftnoir_protocol_mouse.cpp
@@ -41,8 +41,7 @@ void mouse::pose(const double* headpose)
*s.sensitivity_y,
axis_y >= 3);
- const int dx = get_delta(mouse_x, last_x),
- dy = get_delta(mouse_y, last_y);
+ int dx = get_delta(mouse_x, last_x), dy = mouse_y - last_y;
last_x = mouse_x; last_y = mouse_y;