mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 17:45:37 +00:00
66b046a58c
Multiple keyboards correctly reported under Windows (Raw input driver). Corrected some key maps in X11 and Windows Raw keyboards.
26 lines
663 B
C#
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);
|
|
} |