Permalink
Browse files

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

  • Loading branch information...
1 parent 40ce2c4 commit cd42f92c120d2d971da267ae1a7a380a5c734228 @thefiddler thefiddler committed Jan 25, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 Source/OpenTK/Input/GamePadTriggers.cs
@@ -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;

0 comments on commit cd42f92

Please sign in to comment.