From 25946dc406098e6647fe98a860a16284c864df9b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 10 Nov 2007 18:25:33 +0000 Subject: [PATCH] Reverted to 0.3.12 way of handling input events. --- Source/OpenTK/Platform/Windows/WinGLNative.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Source/OpenTK/Platform/Windows/WinGLNative.cs b/Source/OpenTK/Platform/Windows/WinGLNative.cs index 84a1613d..4421c40f 100644 --- a/Source/OpenTK/Platform/Windows/WinGLNative.cs +++ b/Source/OpenTK/Platform/Windows/WinGLNative.cs @@ -23,13 +23,13 @@ namespace OpenTK.Platform.Windows /// Drives GameWindow on Windows. /// This class supports OpenTK, and is not intended for use by OpenTK programs. /// - sealed class WinGLNative : NativeWindow, INativeGLWindow + sealed class WinGLNative : System.Windows.Forms.NativeWindow, INativeGLWindow { #region --- Fields --- private WinGLContext glContext; private DisplayMode mode = new DisplayMode(); - //private WinRawInput driver; + private WinRawInput driver; //private bool fullscreen; private bool disposed; @@ -154,6 +154,18 @@ namespace OpenTK.Platform.Windows #endregion + #region public IInputDriver InputDriver + + public IInputDriver InputDriver + { + get + { + return driver; + } + } + + #endregion + #region public bool Exists /// @@ -340,7 +352,7 @@ namespace OpenTK.Platform.Windows public void OnCreate(EventArgs e) { this.window = new WindowInfo(this); - //driver = new WinRawInput(this.window); + driver = new WinRawInput(this.window); Debug.Print("Window created: {0}", window);