Reverted to 0.3.12 way of handling input events.
This commit is contained in:
parent
acc916a734
commit
25946dc406
1 changed files with 15 additions and 3 deletions
|
@ -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.
|
||||
/// </summary>
|
||||
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
|
||||
|
||||
/// <summary>
|
||||
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue