projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40ce2c4
)
[Input] Corrected GamePadState range to byte [0,255]
author
thefiddler
<stapostol@gmail.com>
Sat, 25 Jan 2014 16:05:06 +0000
(17:05 +0100)
committer
thefiddler
<stapostol@gmail.com>
Sat, 25 Jan 2014 16:05:06 +0000
(17:05 +0100)
Source/OpenTK/Input/GamePadTriggers.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Input/GamePadTriggers.cs
b/Source/OpenTK/Input/GamePadTriggers.cs
index
df9df1a
..
adbc1d1
100644
(file)
--- a/
Source/OpenTK/Input/GamePadTriggers.cs
+++ b/
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;