diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-07-31 12:29:20 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-07-31 12:29:20 +0200 |
| commit | 9a8f162ca773a0a4b8748e631d53935dfd9831dc (patch) | |
| tree | 70d93447dbfaaf7b04474ddb7542a34bf4faed10 /Tests/OpenTKGameWindow.cs | |
| parent | 5236bd6b11d26f08ed49462252bb815314e9e7dc (diff) | |
| parent | 58ca25a123f4cf8ac959d9ad372494b0c40a41bb (diff) | |
Merge branch 'StylingImprovments'
Diffstat (limited to 'Tests/OpenTKGameWindow.cs')
| -rw-r--r-- | Tests/OpenTKGameWindow.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/OpenTKGameWindow.cs b/Tests/OpenTKGameWindow.cs index 381f86c8..2b3bdb24 100644 --- a/Tests/OpenTKGameWindow.cs +++ b/Tests/OpenTKGameWindow.cs @@ -107,6 +107,8 @@ namespace Crow void interfaceThread() { + Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; + CrowInterface.Quit += Quit; CrowInterface.MouseCursorChanged += CrowInterface_MouseCursorChanged; while (CrowInterface.ClientRectangle.Size.Width == 0) @@ -314,12 +316,12 @@ namespace Crow #region keyboard Handling void Keyboard_KeyDown(object sender, OpenTK.Input.KeyboardKeyEventArgs otk_e) { - //if (!CrowInterface.ProcessKeyDown((int)otk_e.Key)) + if (!CrowInterface.ProcessKeyDown((int)otk_e.Key)) KeyboardKeyDown.Raise (this, otk_e); } void Keyboard_KeyUp(object sender, OpenTK.Input.KeyboardKeyEventArgs otk_e) { - //if (!CrowInterface.ProcessKeyUp((int)otk_e.Key)) + if (!CrowInterface.ProcessKeyUp((int)otk_e.Key)) KeyboardKeyUp.Raise (this, otk_e); } void OpenTKGameWindow_KeyPress (object sender, OpenTK.KeyPressEventArgs e) |