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:
268e8fc
)
[Input] Update state through HandleKey* events
author
thefiddler
<stapostol@gmail.com>
Sun, 4 May 2014 15:02:00 +0000
(17:02 +0200)
committer
thefiddler
<stapostol@gmail.com>
Sun, 4 May 2014 15:02:00 +0000
(17:02 +0200)
Source/OpenTK/Platform/LegacyInputDriver.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/LegacyInputDriver.cs
b/Source/OpenTK/Platform/LegacyInputDriver.cs
index
50d00de
..
2378b91
100644
(file)
--- a/
Source/OpenTK/Platform/LegacyInputDriver.cs
+++ b/
Source/OpenTK/Platform/LegacyInputDriver.cs
@@
-67,15
+67,8
@@
namespace OpenTK.Platform
window.MouseWheel += mouse.HandleMouseWheel;
// Hook keyboard events
- window.KeyDown += (sender, e) =>
- {
- keyboard.SetKey(e.Key, e.ScanCode, e.Modifiers, true);
- };
-
- window.KeyUp += (sender, e) =>
- {
- keyboard.SetKey(e.Key, e.ScanCode, e.Modifiers, false);
- };
+ window.KeyDown += keyboard.HandleKeyDown;
+ window.KeyUp += keyboard.HandleKeyUp;
window.FocusedChanged += (sender, e) =>
{