From 346c7c15c8328d48a76e033046657e84bd513395 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 26 Sep 2007 11:29:18 +0000 Subject: [PATCH] Delete IKeyboard.cs and IMouse.cs interfaces. Not needed, as the MouseDevice and KeyboardDevice classes are sealed. --- Source/OpenTK/Input/IKeyboard.cs | 26 -------------------------- Source/OpenTK/Input/IMouse.cs | 32 -------------------------------- 2 files changed, 58 deletions(-) delete mode 100644 Source/OpenTK/Input/IKeyboard.cs delete mode 100644 Source/OpenTK/Input/IMouse.cs diff --git a/Source/OpenTK/Input/IKeyboard.cs b/Source/OpenTK/Input/IKeyboard.cs deleted file mode 100644 index 1847ab02..00000000 --- a/Source/OpenTK/Input/IKeyboard.cs +++ /dev/null @@ -1,26 +0,0 @@ -#region --- License --- -/* Copyright (c) 2007 Stefanos Apostolopoulos - * See license.txt for license info - */ -#endregion - -using System; - -namespace OpenTK.Input -{ - public interface IKeyboard : IInputDevice - { - bool this[Key k] { get; } - int NumberOfKeys { get; } - int NumberOfFunctionKeys { get; } - int NumberOfLeds { get; } - IntPtr DeviceID { get; } - bool KeyRepeat { get; set; } - - event KeyDownEvent KeyDown; - event KeyUpEvent KeyUp; - } - - public delegate void KeyDownEvent(IKeyboard sender, Key key); - public delegate void KeyUpEvent(IKeyboard sender, Key key); -} \ No newline at end of file diff --git a/Source/OpenTK/Input/IMouse.cs b/Source/OpenTK/Input/IMouse.cs deleted file mode 100644 index 5223346d..00000000 --- a/Source/OpenTK/Input/IMouse.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region --- License --- -/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos - * See license.txt for license info - */ -#endregion - -using System; -using System.Collections.Generic; -using System.Text; - -namespace OpenTK.Input -{ - public interface IMouse : IInputDevice - { - int NumberOfButtons { get; } - int NumberOfWheels { get; } - IntPtr DeviceID { get; } - int Wheel { get; } - int X { get; } - int Y { get; } - int XDelta { get; } - int YDelta { get; } - - //event MouseMoveEvent Move; - event MouseButtonDownEvent ButtonDown; - event MouseButtonUpEvent ButtonUp; - } - - public delegate void MouseMoveEvent(IMouse sender, MouseMoveData key); - public delegate void MouseButtonDownEvent(IMouse sender, MouseButton button); - public delegate void MouseButtonUpEvent(IMouse sender, MouseButton button); -}