mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 09:15:31 +00:00
Removed the InputDriver from the INativeGLWindow interface. It now resides lower, in the GameWindow class.
This commit is contained in:
parent
85ffee222e
commit
32d40b8033
|
@ -29,8 +29,6 @@ namespace OpenTK.Platform
|
|||
bool IsIdle { get; }
|
||||
IGLContext Context { get; }
|
||||
|
||||
IInputDriver InputDriver { get; }
|
||||
|
||||
event CreateEvent Create;
|
||||
event DestroyEvent Destroy;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
private WinGLContext glContext;
|
||||
private DisplayMode mode = new DisplayMode();
|
||||
private WinRawInput driver;
|
||||
//private WinRawInput driver;
|
||||
|
||||
private bool fullscreen;
|
||||
private bool disposed;
|
||||
|
@ -261,18 +261,6 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
#endregion
|
||||
|
||||
#region public IInputDriver InputDriver
|
||||
|
||||
public IInputDriver InputDriver
|
||||
{
|
||||
get
|
||||
{
|
||||
return driver;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region public IWindowInfo WindowInfo
|
||||
|
||||
public IWindowInfo WindowInfo
|
||||
|
@ -352,18 +340,14 @@ 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);
|
||||
|
||||
try
|
||||
{
|
||||
glContext = new WinGLContext(this.mode, this.WindowInfo);
|
||||
//glContext.PrepareContext(this.Handle);
|
||||
glContext.CreateContext();
|
||||
//glContext.MakeCurrent();
|
||||
//GL.LoadAll();
|
||||
//Glu.LoadAll();
|
||||
}
|
||||
catch (ApplicationException expt)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue