Opentk/Source/OpenTK/Input/IKeyboard.cs
the_fiddler c689f50a21 Added KeyDown and KeyUp events to IKeyboard and Keyboard.
Improved input logger test to hook on the aforementioned events.
Removed Debug printing of keys in OpenTK.Input.Keyboard.
Beautified X11Keyboard.cs
Added experimental code to handle X11 keyboard events (not used yet).
2007-08-20 13:45:04 +00:00

29 lines
750 B
C#

#region --- License ---
/* Copyright (c) 2007 Stefanos Apostolopoulos
* See license.txt for license info
*/
#endregion
namespace OpenTK.Input
{
public interface IKeyboard : IInputDevice
{
bool this[Key k] { get; }
int NumberOfKeys { get; }
int NumberOfFunctionKeys { get; }
int NumberOfLeds { get; }
long DeviceID { get; }
event KeyDownEvent KeyDown;
event KeyUpEvent KeyUp;
}
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; } }
//}
}