From: thefiddler Date: Sat, 25 Jan 2014 16:05:06 +0000 (+0100) Subject: [Input] Corrected GamePadState range to byte [0,255] X-Git-Tag: 2.0-0~249 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd42f92c120d2d971da267ae1a7a380a5c734228;p=platform%2Fcore%2Fcsapi%2Fopentk.git [Input] Corrected GamePadState range to byte [0,255] --- 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;