mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-09 00:05:27 +00:00
[Input] Corrected GamePadState range to byte [0,255]
This commit is contained in:
parent
40ce2c4288
commit
cd42f92c12
|
@ -37,11 +37,11 @@ namespace OpenTK.Input
|
|||
/// </summary>
|
||||
public struct GamePadTriggers : IEquatable<GamePadTriggers>
|
||||
{
|
||||
const float ConversionFactor = 1.0f / short.MaxValue;
|
||||
short left;
|
||||
short right;
|
||||
const float ConversionFactor = 1.0f / byte.MaxValue;
|
||||
byte left;
|
||||
byte right;
|
||||
|
||||
internal GamePadTriggers(short left, short right)
|
||||
internal GamePadTriggers(byte left, byte right)
|
||||
{
|
||||
this.left = left;
|
||||
this.right = right;
|
||||
|
|
Loading…
Reference in a new issue