Merge pull request #369 from cra0zy/fixminus

Fix gamepad y-axis inversion to avoid integer overflow
This commit is contained in:
Paul Scharf 2016-03-16 11:03:49 +01:00
commit 32665ca1cb

View file

@ -171,7 +171,7 @@ namespace OpenTK.Input
if ((axis & GamePadAxes.LeftY) != 0)
{
left_stick_y = (short)(-value);
left_stick_y = (short)~value;
}
if ((axis & GamePadAxes.RightX) != 0)
@ -181,7 +181,7 @@ namespace OpenTK.Input
if ((axis & GamePadAxes.RightY) != 0)
{
right_stick_y = (short)(-value);
right_stick_y = (short)~value;
}
if ((axis & GamePadAxes.LeftTrigger) != 0)