MNT Reform: Open Source Portable Computer https://mntre.com/reform
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
3.3KB

  1. #define KEY_A 0x04
  2. #define KEY_B 0x05
  3. #define KEY_C 0x06
  4. #define KEY_D 0x07
  5. #define KEY_E 0x08
  6. #define KEY_F 0x09
  7. #define KEY_G 0x0A
  8. #define KEY_H 0x0B
  9. #define KEY_I 0x0C
  10. #define KEY_J 0x0D
  11. #define KEY_K 0x0E
  12. #define KEY_L 0x0F
  13. #define KEY_M 0x10
  14. #define KEY_N 0x11
  15. #define KEY_O 0x12
  16. #define KEY_P 0x13
  17. #define KEY_Q 0x14
  18. #define KEY_R 0x15
  19. #define KEY_S 0x16
  20. #define KEY_T 0x17
  21. #define KEY_U 0x18
  22. #define KEY_V 0x19
  23. #define KEY_W 0x1A
  24. #define KEY_X 0x1B
  25. #define KEY_Y 0x1C
  26. #define KEY_Z 0x1D
  27. #define KEY_1 0x1E
  28. #define KEY_2 0x1F
  29. #define KEY_3 0x20
  30. #define KEY_4 0x21
  31. #define KEY_5 0x22
  32. #define KEY_6 0x23
  33. #define KEY_7 0x24
  34. #define KEY_8 0x25
  35. #define KEY_9 0x26
  36. #define KEY_0 0x27
  37. #define KEY_ENTER 0x28
  38. #define KEY_ESCAPE 0x29
  39. #define KEY_BACKSPACE 0x2A
  40. #define KEY_TAB 0x2B
  41. #define KEY_SPACE 0x2C
  42. #define KEY_MINUS_AND_UNDERSCORE 0x2D
  43. #define KEY_EQUAL_AND_PLUS 0x2E
  44. #define KEY_OPENING_BRACKET_AND_OPENING_BRACE 0x2F
  45. #define KEY_CLOSING_BRACKET_AND_CLOSING_BRACE 0x30
  46. #define KEY_BACKSLASH_AND_PIPE 0x31
  47. #define KEY_NON_US_HASHMARK_AND_TILDE 0x32
  48. #define KEY_SEMICOLON_AND_COLON 0x33
  49. #define KEY_APOSTROPHE_AND_QUOTE 0x34
  50. #define KEY_GRAVE_ACCENT_AND_TILDE 0x35
  51. #define KEY_COMMA_AND_LESS_THAN_SIGN 0x36
  52. #define KEY_DOT_AND_GREATER_THAN_SIGN 0x37
  53. #define KEY_SLASH_AND_QUESTION_MARK 0x38
  54. #define KEY_CAPS_LOCK 0x39
  55. #define KEY_F1 0x3A
  56. #define KEY_F2 0x3B
  57. #define KEY_F3 0x3C
  58. #define KEY_F4 0x3D
  59. #define KEY_F5 0x3E
  60. #define KEY_F6 0x3F
  61. #define KEY_F7 0x40
  62. #define KEY_F8 0x41
  63. #define KEY_F9 0x42
  64. #define KEY_F10 0x43
  65. #define KEY_F11 0x44
  66. #define KEY_F12 0x45
  67. #define KEY_PRINT_SCREEN 0x46
  68. #define KEY_SCROLL_LOCK 0x47
  69. #define KEY_PAUSE 0x48
  70. #define KEY_INSERT 0x49
  71. #define KEY_HOME 0x4A
  72. #define KEY_PAGE_UP 0x4B
  73. #define KEY_DELETE 0x4C
  74. #define KEY_END 0x4D
  75. #define KEY_PAGE_DOWN 0x4E
  76. #define KEY_RIGHT_ARROW 0x4F
  77. #define KEY_LEFT_ARROW 0x50
  78. #define KEY_DOWN_ARROW 0x51
  79. #define KEY_UP_ARROW 0x52
  80. #define KEY_NUM_LOCK 0x53
  81. #define KEY_KEYPAD_SLASH 0x54
  82. #define KEY_KEYPAD_ASTERISK 0x55
  83. #define KEY_KEYPAD_MINUS 0x56
  84. #define KEY_KEYPAD_PLUS 0x57
  85. #define KEY_KEYPAD_ENTER 0x58
  86. #define KEY_KEYPAD_1_AND_END 0x59
  87. #define KEY_KEYPAD_2_AND_DOWN_ARROW 0x5A
  88. #define KEY_KEYPAD_3_AND_PAGE_DOWN 0x5B
  89. #define KEY_KEYPAD_4_AND_LEFT_ARROW 0x5C
  90. #define KEY_KEYPAD_5 0x5D
  91. #define KEY_KEYPAD_6_AND_RIGHT_ARROW 0x5E
  92. #define KEY_KEYPAD_7_AND_HOME 0x5F
  93. #define KEY_KEYPAD_8_AND_UP_ARROW 0x60
  94. #define KEY_KEYPAD_9_AND_PAGE_UP 0x61
  95. #define KEY_KEYPAD_0_AND_INSERT 0x62
  96. #define KEY_KEYPAD_DOT_AND_DELETE 0x63
  97. #define KEY_NON_US_BACKSLASH_AND_PIPE 0x64
  98. #define KEY_APPLICATION 0x65
  99. #define KEY_POWER 0x66
  100. #define KEY_KEYPAD_EQUAL_SIGN 0x67
  101. #define KEY_F13 0x68
  102. #define KEY_F14 0x69
  103. #define KEY_F15 0x6A
  104. #define KEY_F16 0x6B
  105. #define KEY_F17 0x6C
  106. #define KEY_F18 0x6D
  107. #define KEY_F19 0x6E
  108. #define KEY_F20 0x6F
  109. #define KEY_F21 0x70
  110. #define KEY_F22 0x71
  111. #define KEY_F23 0x72
  112. #define KEY_F24 0x73
  113. #define KEY_MUTE 0x7F
  114. #define KEY_VOLUME_UP 0x80
  115. #define KEY_VOLUME_DOWN 0x81