From 4743d5afd6872394e42bb8f9ca7e48b362571a62 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 24 Sep 2007 21:10:52 +0000 Subject: [PATCH] InputDriver now correctly interfaces with its mouseDriver. --- Source/OpenTK/InputDriver.cs | 3 +-- Source/OpenTK/Platform/X11/X11Input.cs | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/OpenTK/InputDriver.cs b/Source/OpenTK/InputDriver.cs index d2827610..14037872 100644 --- a/Source/OpenTK/InputDriver.cs +++ b/Source/OpenTK/InputDriver.cs @@ -31,8 +31,7 @@ namespace OpenTK } else if (Environment.OSVersion.Platform == PlatformID.Unix) { - inputDriver = - new OpenTK.Platform.X11.X11Input(parent); + inputDriver = new OpenTK.Platform.X11.X11Input(parent); } else { diff --git a/Source/OpenTK/Platform/X11/X11Input.cs b/Source/OpenTK/Platform/X11/X11Input.cs index f7500bb5..04b4b537 100644 --- a/Source/OpenTK/Platform/X11/X11Input.cs +++ b/Source/OpenTK/Platform/X11/X11Input.cs @@ -120,11 +120,13 @@ namespace OpenTK.Platform.X11 public IList Mouse { - get { throw new Exception("The method or operation is not implemented."); } + get { return mouseDriver.Mouse; } } #endregion + #region public void Poll() + /// /// Consumes to keyboard, mouse, etc events, routing them to their /// respective drivers. @@ -157,6 +159,8 @@ namespace OpenTK.Platform.X11 #endregion + #endregion + #region --- IDisposable Members --- public void Dispose()