summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_mouse
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-06-25 00:11:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-06-25 00:11:00 +0200
commit21f76439ae4c918184d00f41e89bb32c8633ba1d (patch)
treec6f81cebce9f8cd1079eab894dc29ce3f0c1a39a /ftnoir_protocol_mouse
parentb11526a477364b09b6162bf332305f64cf16fccb (diff)
Fix typo precluding roll axis from working
Diffstat (limited to 'ftnoir_protocol_mouse')
-rw-r--r--ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp4
1 files 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;