mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 05:25:37 +00:00
Delete IKeyboard.cs and IMouse.cs interfaces. Not needed, as the MouseDevice and KeyboardDevice classes are sealed.
This commit is contained in:
parent
2750081048
commit
346c7c15c8
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue