mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 19:15:36 +00:00
33527aa2c9
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).
29 lines
750 B
C#
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; } }
|
|
//}
|
|
} |