mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 17:15:34 +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.
|
||||
short value = pressed ?
|
||||
short.MaxValue :
|
||||
map.Target.Axis == GamePadAxes.LeftTrigger || map.Target.Axis == GamePadAxes.RightTrigger ?
|
||||
(map.Target.Axis & (GamePadAxes.LeftTrigger | GamePadAxes.RightTrigger)) != 0 ?
|
||||
short.MinValue :
|
||||
(short)0;
|
||||
pad.SetAxis(map.Target.Axis, value);
|
||||
|
@ -157,7 +157,7 @@ namespace OpenTK.Platform
|
|||
// the following line to support both.
|
||||
short value = pressed ?
|
||||
short.MaxValue :
|
||||
map.Target.Axis == GamePadAxes.LeftTrigger || map.Target.Axis == GamePadAxes.RightTrigger ?
|
||||
(map.Target.Axis & (GamePadAxes.LeftTrigger | GamePadAxes.RightTrigger)) != 0 ?
|
||||
short.MinValue :
|
||||
(short)0;
|
||||
pad.SetAxis(map.Target.Axis, value);
|
||||
|
|
Loading…
Reference in a new issue