diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-03 11:11:46 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-03 11:12:03 +0100 |
commit | e26830bf71ca5968fc9d9d473966ea4b75120b56 (patch) | |
tree | 27ade992facd45b2746b167dc031adfd96537035 /dinput/win32-joystick.hpp | |
parent | 2dc57da89cdc56a61ec8da1c7fa7770448f3d3f6 (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 'dinput/win32-joystick.hpp')
-rw-r--r-- | dinput/win32-joystick.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dinput/win32-joystick.hpp b/dinput/win32-joystick.hpp index 4b48d4a1..6454c51c 100644 --- a/dinput/win32-joystick.hpp +++ b/dinput/win32-joystick.hpp @@ -55,7 +55,7 @@ struct OPENTRACK_DINPUT_EXPORT win32_joy_ctx using joys_t = std::unordered_map<QString, std::shared_ptr<joy>>; - static constexpr int joy_axis_size = 65535; + static constexpr int joy_axis_size = 65536; struct joy_info { |