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:
17aa805
)
[X11] Fixed OnMouseMove being called without mouse movement
author
thefiddler
<stapostol@gmail.com>
Fri, 18 Jul 2014 15:02:47 +0000
(17:02 +0200)
committer
thefiddler
<stapostol@gmail.com>
Fri, 18 Jul 2014 15:02:47 +0000
(17:02 +0200)
Source/OpenTK/Platform/X11/X11GLNative.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/X11/X11GLNative.cs
b/Source/OpenTK/Platform/X11/X11GLNative.cs
index
1971501
..
c1de141
100644
(file)
--- a/
Source/OpenTK/Platform/X11/X11GLNative.cs
+++ b/
Source/OpenTK/Platform/X11/X11GLNative.cs
@@
-892,7
+892,7
@@
namespace OpenTK.Platform.X11
int x = e.MotionEvent.x;
int y = e.MotionEvent.y;
- if (x !=
0 || y != 0
)
+ if (x !=
MouseState.X || y != MouseState.Y
)
{
OnMouseMove(
MathHelper.Clamp(x, 0, Width),