mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 20:05:39 +00:00
[Input] Fixed bitwise test for GamePadAxes
This commit is contained in:
parent
2df0496c44
commit
73f255ed14
|
@ -110,7 +110,7 @@ namespace OpenTK.Platform
|
||||||
// the following line to support both.
|
// the following line to support both.
|
||||||
short value = pressed ?
|
short value = pressed ?
|
||||||
short.MaxValue :
|
short.MaxValue :
|
||||||
map.Target.Axis == GamePadAxes.LeftTrigger || map.Target.Axis == GamePadAxes.RightTrigger ?
|
(map.Target.Axis & (GamePadAxes.LeftTrigger | GamePadAxes.RightTrigger)) != 0 ?
|
||||||
short.MinValue :
|
short.MinValue :
|
||||||
(short)0;
|
(short)0;
|
||||||
pad.SetAxis(map.Target.Axis, value);
|
pad.SetAxis(map.Target.Axis, value);
|
||||||
|
@ -157,7 +157,7 @@ namespace OpenTK.Platform
|
||||||
// the following line to support both.
|
// the following line to support both.
|
||||||
short value = pressed ?
|
short value = pressed ?
|
||||||
short.MaxValue :
|
short.MaxValue :
|
||||||
map.Target.Axis == GamePadAxes.LeftTrigger || map.Target.Axis == GamePadAxes.RightTrigger ?
|
(map.Target.Axis & (GamePadAxes.LeftTrigger | GamePadAxes.RightTrigger)) != 0 ?
|
||||||
short.MinValue :
|
short.MinValue :
|
||||||
(short)0;
|
(short)0;
|
||||||
pad.SetAxis(map.Target.Axis, value);
|
pad.SetAxis(map.Target.Axis, value);
|
||||||
|
|
Loading…
Reference in a new issue