summaryrefslogtreecommitdiffhomepage
path: root/tracker-joystick/ftnoir_tracker_joystick.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-03 11:11:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-03 11:12:03 +0100
commite26830bf71ca5968fc9d9d473966ea4b75120b56 (patch)
tree27ade992facd45b2746b167dc031adfd96537035 /tracker-joystick/ftnoir_tracker_joystick.h
parent2dc57da89cdc56a61ec8da1c7fa7770448f3d3f6 (diff)
logic/tracker, dinput, tracker/joystick: fix rounding errors
Issue: #487 Reported-by: @H-Bear-22 Closes #487 Also use a power of two for joy_axis_size. Floats are base 2. axis_max in tracker/joystick had a fencepost error.
Diffstat (limited to 'tracker-joystick/ftnoir_tracker_joystick.h')
-rw-r--r--tracker-joystick/ftnoir_tracker_joystick.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-joystick/ftnoir_tracker_joystick.h b/tracker-joystick/ftnoir_tracker_joystick.h
index 0af1444e..a7e8fddd 100644
--- a/tracker-joystick/ftnoir_tracker_joystick.h
+++ b/tracker-joystick/ftnoir_tracker_joystick.h
@@ -45,7 +45,7 @@ public:
void data(double *data);
settings s;
QString guid;
- static constexpr int AXIS_MAX = win32_joy_ctx::joy_axis_size - 1;
+ static constexpr int AXIS_MAX = win32_joy_ctx::joy_axis_size;
win32_joy_ctx joy_ctx;
};