mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 07:55:39 +00:00
InputDriver now correctly interfaces with its mouseDriver.
This commit is contained in:
parent
9bd06cf09e
commit
4743d5afd6
|
@ -31,8 +31,7 @@ namespace OpenTK
|
||||||
}
|
}
|
||||||
else if (Environment.OSVersion.Platform == PlatformID.Unix)
|
else if (Environment.OSVersion.Platform == PlatformID.Unix)
|
||||||
{
|
{
|
||||||
inputDriver =
|
inputDriver = new OpenTK.Platform.X11.X11Input(parent);
|
||||||
new OpenTK.Platform.X11.X11Input(parent);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -120,11 +120,13 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
public IList<Mouse> Mouse
|
public IList<Mouse> Mouse
|
||||||
{
|
{
|
||||||
get { throw new Exception("The method or operation is not implemented."); }
|
get { return mouseDriver.Mouse; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region public void Poll()
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Consumes to keyboard, mouse, etc events, routing them to their
|
/// Consumes to keyboard, mouse, etc events, routing them to their
|
||||||
/// respective drivers.
|
/// respective drivers.
|
||||||
|
@ -157,6 +159,8 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region --- IDisposable Members ---
|
#region --- IDisposable Members ---
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|
Loading…
Reference in a new issue