2007-07-27 01:37:12 +00:00
|
|
|
|
#region --- License ---
|
|
|
|
|
/* Copyright (c) 2007 Stefanos Apostolopoulos
|
|
|
|
|
* See license.txt for license info
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
2007-07-26 22:56:55 +00:00
|
|
|
|
|
|
|
|
|
namespace OpenTK.Input
|
|
|
|
|
{
|
2007-08-03 00:14:31 +00:00
|
|
|
|
public interface IKeyboard : IInputDevice
|
2007-07-26 22:56:55 +00:00
|
|
|
|
{
|
2007-08-05 16:04:39 +00:00
|
|
|
|
bool this[Key k] { get; }
|
2007-08-04 12:09:58 +00:00
|
|
|
|
int NumberOfKeys { get; }
|
|
|
|
|
int NumberOfFunctionKeys { get; }
|
|
|
|
|
int NumberOfLeds { get; }
|
|
|
|
|
long DeviceID { get; }
|
2007-08-20 13:45:04 +00:00
|
|
|
|
|
|
|
|
|
event KeyDownEvent KeyDown;
|
|
|
|
|
event KeyUpEvent KeyUp;
|
2007-07-26 22:56:55 +00:00
|
|
|
|
}
|
2007-08-20 13:45:04 +00:00
|
|
|
|
|
|
|
|
|
public delegate void KeyDownEvent(object sender, Key key);
|
|
|
|
|
public delegate void KeyUpEvent(object sender, Key key);
|
|
|
|
|
|
|
|
|
|
//public class KeyEventArgs : System.EventArgs
|
|
|
|
|
//{
|
|
|
|
|
// private Key key;
|
|
|
|
|
// public Key Key { get { return key; } }
|
|
|
|
|
//}
|
2007-08-03 00:14:31 +00:00
|
|
|
|
}
|