You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
604 B
C#
21 lines
604 B
C#
namespace WebGLSupport
|
|
{
|
|
public delegate void KeyboardEventHandler(WebGLInput input, KeyboardEvent keyboardEvent);
|
|
public sealed class KeyboardEvent
|
|
{
|
|
public string Key { get; }
|
|
public int Code { get; }
|
|
public bool ShiftKey { get; }
|
|
public bool CtrlKey { get; }
|
|
public bool AltKey { get; }
|
|
public KeyboardEvent(string key, int code, bool shiftKey, bool ctrlKey, bool altKey)
|
|
{
|
|
Key = key;
|
|
Code = code;
|
|
ShiftKey = shiftKey;
|
|
CtrlKey = ctrlKey;
|
|
AltKey = altKey;
|
|
}
|
|
}
|
|
}
|