InputDriver now correctly interfaces with its mouseDriver.

This commit is contained in:
the_fiddler 2007-09-24 21:10:52 +00:00
parent 9bd06cf09e
commit 4743d5afd6
2 changed files with 6 additions and 3 deletions

View file

@ -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
{ {

View file

@ -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()