From 145b8cd856592322b13edcc7f7ac2690415425bc Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 25 Apr 2019 06:48:45 +0200 Subject: proto/mouse: fix vertical movement wraparound --- proto-mouse/ftnoir_protocol_mouse.cpp | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3