diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-04-30 13:03:33 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-04-30 13:03:33 +0200 |
| commit | 02ac8178673249c2d1af60d7b291d8b40419bcd8 (patch) | |
| tree | 672b1242b2d31ed159916ed32b99147279fcc758 /src/Interface.cs | |
| parent | 8771dccd2369447a50485c7649e8a0851b551958 (diff) | |
glfw backend, group measure on change only
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index 063a34de..2e145bff 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -655,6 +655,7 @@ namespace Crow if (!FocusedWidget.MouseRepeat) return true; mouseRepeatThread = new Thread (mouseRepeatThreadFunc); + mouseRepeatThread.IsBackground = true; mouseRepeatThread.Start (); return true; } @@ -685,8 +686,7 @@ namespace Crow #endregion #region Keyboard - public bool ProcessKeyDown(int Key){ - Keyboard.SetKeyState ((Crow.Key)Key, true); + public bool ProcessKeyDown(int Key){ if (_focusedWidget == null) return false; KeyboardKeyEventArgs e = new KeyboardKeyEventArgs((Crow.Key)Key, false, Keyboard); @@ -694,7 +694,6 @@ namespace Crow return true; } public bool ProcessKeyUp(int Key){ - Keyboard.SetKeyState ((Crow.Key)Key, false); if (_activeWidget == null) return false; //KeyboardKeyEventArgs e = new KeyboardKeyEventArgs((Crow.Key)Key, false, Keyboard); |