Delete IKeyboard.cs and IMouse.cs interfaces. Not needed, as the MouseDevice and KeyboardDevice classes are sealed.

This commit is contained in:
the_fiddler 2007-09-26 11:29:18 +00:00
parent a267b4a381
commit 8efe9afe2e
2 changed files with 0 additions and 58 deletions

View file

@ -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);
}

View file

@ -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);
}