summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp')
-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;