[Input] Corrected GamePadState range to byte [0,255]

This commit is contained in:
thefiddler 2014-01-25 17:05:06 +01:00
parent 40ce2c4288
commit cd42f92c12

View file

@ -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;