From cd42f92c120d2d971da267ae1a7a380a5c734228 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sat, 25 Jan 2014 17:05:06 +0100 Subject: [PATCH] [Input] Corrected GamePadState range to byte [0,255] --- Source/OpenTK/Input/GamePadTriggers.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/OpenTK/Input/GamePadTriggers.cs b/Source/OpenTK/Input/GamePadTriggers.cs index df9df1a..adbc1d1 100644 --- a/Source/OpenTK/Input/GamePadTriggers.cs +++ b/Source/OpenTK/Input/GamePadTriggers.cs @@ -37,11 +37,11 @@ namespace OpenTK.Input /// public struct GamePadTriggers : IEquatable { - 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; -- 2.7.4