Opentk/Source/OpenTK/Input/IKeyboard.cs
the_fiddler 66b046a58c Added KeyRepeat to IKeyboard.
Multiple keyboards correctly reported under Windows (Raw input driver).
Corrected some key maps in X11 and Windows Raw keyboards.
2007-09-21 20:03:53 +00:00

26 lines
663 B
C#

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