1234567891011121314151617181920 |
- 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;
- }
- }
- }
|