summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2016-07-11 14:00:09 +0200
committerLéo Lam <leo@innovatetechnologi.es>2016-07-11 14:00:09 +0200
commit6cc4591226f81ed7b27d6d4245375e18c4c40449 (patch)
tree08efdcb0f4ea6e585526339f6b0b4b31714c3784 /Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
parentf57aec05257b23b097609263a7352aecca75b874 (diff)
evdev: Clamp axis values to the 0.0-1.0 range
The values are expected to be in the 0.0-1.0 range (as indicated by the comment), and other parts of Dolphin also expect it to be in that range since the "full" axis has a -1.0 to 1.0 range. However, this is not always the case and fvalue can end up being outside of the range. This clamps fvalue to always be in the 0.0 and 1.0 range.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp')
0 files changed, 0 insertions, 0 deletions