From 21f76439ae4c918184d00f41e89bb32c8633ba1d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 25 Jun 2013 00:11:00 +0200 Subject: Fix typo precluding roll axis from working --- ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp index 187da752..fc04c2f3 100644 --- a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp +++ b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp @@ -68,10 +68,10 @@ void FTNoIR_Protocol::sendHeadposeToGame(double *headpose, double *rawheadpose ) float fMouse_X = 0; float fMouse_Y = 0; - if (Mouse_X > 0 && Mouse_X < 6) + if (Mouse_X > 0 && Mouse_X <= 6) fMouse_X = headpose[Mouse_X-1] / (Mouse_X < 3 ? 100 : 180); - if (Mouse_Y > 0 && Mouse_Y < 6) + if (Mouse_Y > 0 && Mouse_Y <= 6) fMouse_Y = headpose[Mouse_Y-1] / (Mouse_Y < 3 ? 100 : 180); RECT desktop; -- cgit v1.2.3