From dce223c73812e46b8932f4dbdda056ef5a66f756 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 5 Aug 2007 10:17:20 +0000 Subject: [PATCH] Added IMouse.cs and Mouse.cs, fixing the compilation on mono. --- Source/OpenTK/Input/IMouse.cs | 10 ++++++++++ Source/OpenTK/Input/Mouse.cs | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 Source/OpenTK/Input/IMouse.cs create mode 100644 Source/OpenTK/Input/Mouse.cs diff --git a/Source/OpenTK/Input/IMouse.cs b/Source/OpenTK/Input/IMouse.cs new file mode 100644 index 00000000..44368aa7 --- /dev/null +++ b/Source/OpenTK/Input/IMouse.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenTK.Input +{ + interface IMouse : IInputDevice + { + } +} diff --git a/Source/OpenTK/Input/Mouse.cs b/Source/OpenTK/Input/Mouse.cs new file mode 100644 index 00000000..aa6fe1b2 --- /dev/null +++ b/Source/OpenTK/Input/Mouse.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenTK.Input +{ + public class Mouse : IMouse + { + #region --- IInputDevice Members --- + + public string Description + { + get { throw new Exception("The method or operation is not implemented."); } + } + + public InputDeviceType DeviceType + { + get { return InputDeviceType.Mouse; } + } + + #endregion + } +}