KeyboardEvent.cs 624 B

1234567891011121314151617181920
  1. namespace WebGLSupport
  2. {
  3. public delegate void KeyboardEventHandler(WebGLInput input, KeyboardEvent keyboardEvent);
  4. public sealed class KeyboardEvent
  5. {
  6. public string Key { get; }
  7. public int Code { get; }
  8. public bool ShiftKey { get; }
  9. public bool CtrlKey { get; }
  10. public bool AltKey { get; }
  11. public KeyboardEvent(string key, int code, bool shiftKey, bool ctrlKey, bool altKey)
  12. {
  13. Key = key;
  14. Code = code;
  15. ShiftKey = shiftKey;
  16. CtrlKey = ctrlKey;
  17. AltKey = altKey;
  18. }
  19. }
  20. }