[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> /// </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;