mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-07 16:40:39 +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>
|
/// </summary>
|
||||||
public struct GamePadTriggers : IEquatable<GamePadTriggers>
|
public struct GamePadTriggers : IEquatable<GamePadTriggers>
|
||||||
{
|
{
|
||||||
const float ConversionFactor = 1.0f / short.MaxValue;
|
const float ConversionFactor = 1.0f / byte.MaxValue;
|
||||||
short left;
|
byte left;
|
||||||
short right;
|
byte right;
|
||||||
|
|
||||||
internal GamePadTriggers(short left, short right)
|
internal GamePadTriggers(byte left, byte right)
|
||||||
{
|
{
|
||||||
this.left = left;
|
this.left = left;
|
||||||
this.right = right;
|
this.right = right;
|
||||||
|
|
Loading…
Reference in a new issue