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:
dc54e9b
)
Fix axis range
author
cra0zy
<cra0zy@gmail.com>
Tue, 15 Mar 2016 18:21:04 +0000
(19:21 +0100)
committer
cra0zy
<cra0zy@gmail.com>
Tue, 15 Mar 2016 23:23:42 +0000
(
00:23
+0100)
Source/OpenTK/Input/GamePadState.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Input/GamePadState.cs
b/Source/OpenTK/Input/GamePadState.cs
index
22f5077
..
2859cea
100644
(file)
--- a/
Source/OpenTK/Input/GamePadState.cs
+++ b/
Source/OpenTK/Input/GamePadState.cs
@@
-171,7
+171,7
@@
namespace OpenTK.Input
if ((axis & GamePadAxes.LeftY) != 0)
{
- left_stick_y = (short)
(-value)
;
+ left_stick_y = (short)
~value
;
}
if ((axis & GamePadAxes.RightX) != 0)
@@
-181,7
+181,7
@@
namespace OpenTK.Input
if ((axis & GamePadAxes.RightY) != 0)
{
- right_stick_y = (short)
(-value)
;
+ right_stick_y = (short)
~value
;
}
if ((axis & GamePadAxes.LeftTrigger) != 0)