Reverted to 0.3.12 way of handling input events.

This commit is contained in:
the_fiddler 2007-11-10 18:25:33 +00:00
parent acc916a734
commit 25946dc406

View file

@ -23,13 +23,13 @@ namespace OpenTK.Platform.Windows
/// Drives GameWindow on Windows. /// Drives GameWindow on Windows.
/// This class supports OpenTK, and is not intended for use by OpenTK programs. /// This class supports OpenTK, and is not intended for use by OpenTK programs.
/// </summary> /// </summary>
sealed class WinGLNative : NativeWindow, INativeGLWindow sealed class WinGLNative : System.Windows.Forms.NativeWindow, INativeGLWindow
{ {
#region --- Fields --- #region --- Fields ---
private WinGLContext glContext; private WinGLContext glContext;
private DisplayMode mode = new DisplayMode(); private DisplayMode mode = new DisplayMode();
//private WinRawInput driver; private WinRawInput driver;
//private bool fullscreen; //private bool fullscreen;
private bool disposed; private bool disposed;
@ -154,6 +154,18 @@ namespace OpenTK.Platform.Windows
#endregion #endregion
#region public IInputDriver InputDriver
public IInputDriver InputDriver
{
get
{
return driver;
}
}
#endregion
#region public bool Exists #region public bool Exists
/// <summary> /// <summary>
@ -340,7 +352,7 @@ namespace OpenTK.Platform.Windows
public void OnCreate(EventArgs e) public void OnCreate(EventArgs e)
{ {
this.window = new WindowInfo(this); this.window = new WindowInfo(this);
//driver = new WinRawInput(this.window); driver = new WinRawInput(this.window);
Debug.Print("Window created: {0}", window); Debug.Print("Window created: {0}", window);