mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-25 18:46:58 +01:00
Add clamping to Gyro Mouse Joystick vertical scale
Related to issue #1144
This commit is contained in:
parent
58fb682a6e
commit
982c234fa7
@ -279,6 +279,8 @@ namespace DS4Windows
|
||||
{
|
||||
double verticalScale = msinfo.vertScale * 0.01;
|
||||
deltaY = (int)(deltaY * verticalScale);
|
||||
deltaY = (deltaY < 0 && deltaY < maxValY) ? maxValY :
|
||||
(deltaY > 0 && deltaY > maxValY) ? maxValY : deltaY;
|
||||
}
|
||||
|
||||
if (deltaX != 0) xratio = deltaX / (double)maxValX;
|
||||
|
Loading…
Reference in New Issue
Block a user