Our server pr0vider carried out maintenance on 15 January 2020 but it corrupted some files in the process. If you notice anything out of the ordinary (partial files, pages not loading, that kind of shit) then let us know at:

kbd_maps.h 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. uint8_t qwerty_map[256] = {
  2. KEY_RESERVED,
  3. KEY_ERROR_ROLLOVER,
  4. KEY_POST_FAIL,
  5. KEY_ERROR_UNDEFINED,
  6. KEY_A,
  7. KEY_B,
  8. KEY_C,
  9. KEY_D,
  10. KEY_E,
  11. KEY_F,
  12. KEY_G,
  13. KEY_H,
  14. KEY_I,
  15. KEY_J,
  16. KEY_K,
  17. KEY_L,
  18. KEY_M,
  19. KEY_N,
  20. KEY_O,
  21. KEY_P,
  22. KEY_Q,
  23. KEY_R,
  24. KEY_S,
  25. KEY_T,
  26. KEY_U,
  27. KEY_V,
  28. KEY_W,
  29. KEY_X,
  30. KEY_Y,
  31. KEY_Z,
  32. KEY_1,
  33. KEY_2,
  34. KEY_3,
  35. KEY_4,
  36. KEY_5,
  37. KEY_6,
  38. KEY_7,
  39. KEY_8,
  40. KEY_9,
  41. KEY_0,
  42. KEY_ENTER,
  43. KEY_ESC,
  44. KEY_BACKSPACE,
  45. KEY_TAB,
  46. KEY_SPACE,
  47. KEY_MINUS,
  48. KEY_EQUAL,
  49. KEY_LEFT_BRACE,
  50. KEY_RIGHT_BRACE,
  51. KEY_BACKSLASH,
  52. KEY_NON_US_NUM,
  53. KEY_SEMICOLON,
  54. KEY_QUOTE,
  55. KEY_TILDE,
  56. KEY_COMMA,
  57. KEY_PERIOD,
  58. KEY_SLASH,
  59. KEY_CAPS_LOCK,
  60. KEY_F1,
  61. KEY_F2,
  62. KEY_F3,
  63. KEY_F4,
  64. KEY_F5,
  65. KEY_F6,
  66. KEY_F7,
  67. KEY_F8,
  68. KEY_F9,
  69. KEY_F10,
  70. KEY_F11,
  71. KEY_F12,
  72. KEY_PRINT,
  73. KEY_SCROLL_LOCK,
  74. KEY_PAUSE,
  75. KEY_INSERT,
  76. KEY_HOME,
  77. KEY_PAGE_UP,
  78. KEY_DELETE,
  79. KEY_END,
  80. KEY_PAGE_DOWN,
  81. KEY_RIGHT_ARROW,
  82. KEY_LEFT_ARROW,
  83. KEY_DOWN_ARROW,
  84. KEY_UP_ARROW,
  85. KEY_NUM_LOCK,
  86. KEYPAD_DIVIDE,
  87. KEYPAD_MULTIPLY,
  88. KEYPAD_SUBTRACT,
  89. KEYPAD_ADD,
  90. KEYPAD_ENTER,
  91. KEYPAD_1,
  92. KEYPAD_2,
  93. KEYPAD_3,
  94. KEYPAD_4,
  95. KEYPAD_5,
  96. KEYPAD_6,
  97. KEYPAD_7,
  98. KEYPAD_8,
  99. KEYPAD_9,
  100. KEYPAD_0,
  101. KEYPAD_DOT,
  102. KEY_NON_US,
  103. KEY_APPLICATION,
  104. KEY_POWER,
  105. KEY_PAD_EQUALS,
  106. KEY_F13,
  107. KEY_F14,
  108. KEY_F15,
  109. KEY_F16,
  110. KEY_F17,
  111. KEY_F18,
  112. KEY_F19,
  113. KEY_F20,
  114. KEY_F21,
  115. KEY_F22,
  116. KEY_F23,
  117. KEY_F24,
  118. KEY_EXECUTE,
  119. KEY_HELP,
  120. KEY_MENU2,
  121. KEY_SELECT,
  122. KEY_STOP,
  123. KEY_AGAIN,
  124. KEY_UNDO,
  125. KEY_CUT,
  126. KEY_COPY,
  127. KEY_PASTE,
  128. KEY_FIND,
  129. KEY_MUTE,
  130. KEY_VOLUME_UP,
  131. KEY_VOLUME_DOWN,
  132. KEY_LOCKING_CAPS_LOCK,
  133. KEY_LOCKING_NUM_LOCK,
  134. KEY_LOCKING_SCROLL_LOCK,
  135. KEYPAD_COMMA,
  136. KEYPAD_EQUAL_SIGN,
  137. KEY_INTERNATIONAL1,
  138. KEY_INTERNATIONAL2,
  139. KEY_INTERNATIONAL3,
  140. KEY_INTERNATIONAL4,
  141. KEY_INTERNATIONAL5,
  142. KEY_INTERNATIONAL6,
  143. KEY_INTERNATIONAL7,
  144. KEY_INTERNATIONAL8,
  145. KEY_INTERNATIONAL9,
  146. KEY_LANG1,
  147. KEY_LANG2,
  148. KEY_LANG3,
  149. KEY_LANG4,
  150. KEY_LANG5,
  151. KEY_LANG6,
  152. KEY_LANG7,
  153. KEY_LANG8,
  154. KEY_LANG9,
  155. KEY_ALTERNATE_ERASE,
  156. KEY_SYSREQ_ATTENTION,
  157. KEY_CANCEL,
  158. KEY_CLEAR,
  159. KEY_PRIOR,
  160. KEY_RETURN2,
  161. KEY_SEPARATOR,
  162. KEY_OUT,
  163. KEY_OPER,
  164. KEY_CLEAR_AGAIN,
  165. KEY_CRSEL_PROPS,
  166. KEY_EXSEL,
  167. KEY_RESERVED,
  168. KEY_RESERVED,
  169. KEY_RESERVED,
  170. KEY_RESERVED,
  171. KEY_RESERVED,
  172. KEY_RESERVED,
  173. KEY_RESERVED,
  174. KEY_RESERVED,
  175. KEY_RESERVED,
  176. KEY_RESERVED,
  177. KEY_RESERVED,
  178. KEY_PAD_00,
  179. KEY_PAD_000,
  180. KEY_THOUSANDS_SEPARATOR,
  181. KEY_DECIMAL_SEPARATOR,
  182. KEY_CURRENCY_UNIT,
  183. KEY_CURRENCY_SUB_UNIT,
  184. KEYPAD_LEFT_BRACE,
  185. KEYPAD_RIGHT_BRACE,
  186. KEYPAD_LEFT_CURLY_BRACE,
  187. KEYPAD_RIGHT_CURLY_BRACE,
  188. KEYPAD_TAB,
  189. KEYPAD_BACKSPACE,
  190. KEYPAD_A,
  191. KEYPAD_B,
  192. KEYPAD_C,
  193. KEYPAD_D,
  194. KEYPAD_E,
  195. KEYPAD_F,
  196. KEYPAD_XOR,
  197. KEYPAD_CARET,
  198. KEYPAD_PERCENT,
  199. KEYPAD_LESS_THAN,
  200. KEYPAD_GREATER_THAN,
  201. KEYPAD_AMPERSAND,
  202. KEYPAD_DOUBLEAMPERSAND,
  203. KEYPAD_PIPE,
  204. KEYPAD_DOUBLEPIPE,
  205. KEYPAD_COLON,
  206. KEYPAD_POUND_SIGN,
  207. KEYPAD_SPACE,
  208. KEYPAD_AT_SIGN,
  209. KEYPAD_EXCLAMATION_POINT,
  210. KEYPAD_MEMORY_STORE,
  211. KEYPAD_MEMORY_RECALL,
  212. KEYPAD_MEMORY_CLEAR,
  213. KEYPAD_MEMORY_ADD,
  214. KEYPAD_MEMORY_SUBTRACT,
  215. KEYPAD_MEMORY_MULTIPLY,
  216. KEYPAD_MEMORY_DIVIDE,
  217. KEYPAD_PLUS_MINUS,
  218. KEYPAD_CLEAR,
  219. KEYPAD_CLEAR_ENTRY,
  220. KEYPAD_BINARY,
  221. KEYPAD_OCTAL,
  222. KEYPAD_DECIMAL,
  223. KEYPAD_HEXADECIMAL,
  224. KEY_RESERVED,
  225. KEY_RESERVED,
  226. KEY_LEFT_CTRL,
  227. KEY_LEFT_SHIFT,
  228. KEY_LEFT_ALT,
  229. KEY_LEFT_GUI,
  230. KEY_RIGHT_CTRL,
  231. KEY_RIGHT_SHIFT,
  232. KEY_RIGHT_ALT,
  233. KEY_RIGHT_GUI,
  234. KEY_RESERVED,
  235. KEY_RESERVED,
  236. KEY_RESERVED,
  237. KEY_RESERVED,
  238. KEY_RESERVED,
  239. KEY_RESERVED,
  240. KEY_RESERVED,
  241. KEY_RESERVED,
  242. KEY_RESERVED,
  243. KEY_RESERVED,
  244. KEY_RESERVED,
  245. KEY_RESERVED,
  246. KEY_RESERVED,
  247. KEY_RESERVED,
  248. KEY_RESERVED,
  249. KEY_RESERVED,
  250. KEY_RESERVED,
  251. KEY_RESERVED,
  252. KEY_RESERVED,
  253. KEY_RESERVED,
  254. KEY_RESERVED,
  255. KEY_RESERVED,
  256. KEY_RESERVED,
  257. KEY_RESERVED
  258. };
  259. uint8_t colemak_map[256] = {
  260. KEY_RESERVED,
  261. KEY_ERROR_ROLLOVER,
  262. KEY_POST_FAIL,
  263. KEY_ERROR_UNDEFINED,
  264. KEY_A,
  265. KEY_B,
  266. KEY_C,
  267. KEY_S,
  268. KEY_F,
  269. KEY_T,
  270. KEY_D,
  271. KEY_H,
  272. KEY_U,
  273. KEY_N,
  274. KEY_E,
  275. KEY_I,
  276. KEY_M,
  277. KEY_K,
  278. KEY_Y,
  279. KEY_SEMICOLON,
  280. KEY_Q,
  281. KEY_P,
  282. KEY_R,
  283. KEY_G,
  284. KEY_L,
  285. KEY_V,
  286. KEY_W,
  287. KEY_X,
  288. KEY_J,
  289. KEY_Z,
  290. KEY_1,
  291. KEY_2,
  292. KEY_3,
  293. KEY_4,
  294. KEY_5,
  295. KEY_6,
  296. KEY_7,
  297. KEY_8,
  298. KEY_9,
  299. KEY_0,
  300. KEY_ENTER,
  301. KEY_ESC,
  302. KEY_BACKSPACE,
  303. KEY_TAB,
  304. KEY_SPACE,
  305. KEY_MINUS,
  306. KEY_EQUAL,
  307. KEY_LEFT_BRACE,
  308. KEY_RIGHT_BRACE,
  309. KEY_BACKSLASH,
  310. KEY_NON_US_NUM,
  311. KEY_O,
  312. KEY_QUOTE,
  313. KEY_TILDE,
  314. KEY_COMMA,
  315. KEY_PERIOD,
  316. KEY_SLASH,
  317. KEY_CAPS_LOCK,
  318. KEY_F1,
  319. KEY_F2,
  320. KEY_F3,
  321. KEY_F4,
  322. KEY_F5,
  323. KEY_F6,
  324. KEY_F7,
  325. KEY_F8,
  326. KEY_F9,
  327. KEY_F10,
  328. KEY_F11,
  329. KEY_F12,
  330. KEY_PRINT,
  331. KEY_SCROLL_LOCK,
  332. KEY_PAUSE,
  333. KEY_INSERT,
  334. KEY_HOME,
  335. KEY_PAGE_UP,
  336. KEY_DELETE,
  337. KEY_END,
  338. KEY_PAGE_DOWN,
  339. KEY_RIGHT_ARROW,
  340. KEY_LEFT_ARROW,
  341. KEY_DOWN_ARROW,
  342. KEY_UP_ARROW,
  343. KEY_NUM_LOCK,
  344. KEYPAD_DIVIDE,
  345. KEYPAD_MULTIPLY,
  346. KEYPAD_SUBTRACT,
  347. KEYPAD_ADD,
  348. KEYPAD_ENTER,
  349. KEYPAD_1,
  350. KEYPAD_2,
  351. KEYPAD_3,
  352. KEYPAD_4,
  353. KEYPAD_5,
  354. KEYPAD_6,
  355. KEYPAD_7,
  356. KEYPAD_8,
  357. KEYPAD_9,
  358. KEYPAD_0,
  359. KEYPAD_DOT,
  360. KEY_NON_US,
  361. KEY_APPLICATION,
  362. KEY_POWER,
  363. KEY_PAD_EQUALS,
  364. KEY_F13,
  365. KEY_F14,
  366. KEY_F15,
  367. KEY_F16,
  368. KEY_F17,
  369. KEY_F18,
  370. KEY_F19,
  371. KEY_F20,
  372. KEY_F21,
  373. KEY_F22,
  374. KEY_F23,
  375. KEY_F24,
  376. KEY_EXECUTE,
  377. KEY_HELP,
  378. KEY_MENU2,
  379. KEY_SELECT,
  380. KEY_STOP,
  381. KEY_AGAIN,
  382. KEY_UNDO,
  383. KEY_CUT,
  384. KEY_COPY,
  385. KEY_PASTE,
  386. KEY_FIND,
  387. KEY_MUTE,
  388. KEY_VOLUME_UP,
  389. KEY_VOLUME_DOWN,
  390. KEY_LOCKING_CAPS_LOCK,
  391. KEY_LOCKING_NUM_LOCK,
  392. KEY_LOCKING_SCROLL_LOCK,
  393. KEYPAD_COMMA,
  394. KEYPAD_EQUAL_SIGN,
  395. KEY_INTERNATIONAL1,
  396. KEY_INTERNATIONAL2,
  397. KEY_INTERNATIONAL3,
  398. KEY_INTERNATIONAL4,
  399. KEY_INTERNATIONAL5,
  400. KEY_INTERNATIONAL6,
  401. KEY_INTERNATIONAL7,
  402. KEY_INTERNATIONAL8,
  403. KEY_INTERNATIONAL9,
  404. KEY_LANG1,
  405. KEY_LANG2,
  406. KEY_LANG3,
  407. KEY_LANG4,
  408. KEY_LANG5,
  409. KEY_LANG6,
  410. KEY_LANG7,
  411. KEY_LANG8,
  412. KEY_LANG9,
  413. KEY_ALTERNATE_ERASE,
  414. KEY_SYSREQ_ATTENTION,
  415. KEY_CANCEL,
  416. KEY_CLEAR,
  417. KEY_PRIOR,
  418. KEY_RETURN2,
  419. KEY_SEPARATOR,
  420. KEY_OUT,
  421. KEY_OPER,
  422. KEY_CLEAR_AGAIN,
  423. KEY_CRSEL_PROPS,
  424. KEY_EXSEL,
  425. KEY_RESERVED,
  426. KEY_RESERVED,
  427. KEY_RESERVED,
  428. KEY_RESERVED,
  429. KEY_RESERVED,
  430. KEY_RESERVED,
  431. KEY_RESERVED,
  432. KEY_RESERVED,
  433. KEY_RESERVED,
  434. KEY_RESERVED,
  435. KEY_RESERVED,
  436. KEY_PAD_00,
  437. KEY_PAD_000,
  438. KEY_THOUSANDS_SEPARATOR,
  439. KEY_DECIMAL_SEPARATOR,
  440. KEY_CURRENCY_UNIT,
  441. KEY_CURRENCY_SUB_UNIT,
  442. KEYPAD_LEFT_BRACE,
  443. KEYPAD_RIGHT_BRACE,
  444. KEYPAD_LEFT_CURLY_BRACE,
  445. KEYPAD_RIGHT_CURLY_BRACE,
  446. KEYPAD_TAB,
  447. KEYPAD_BACKSPACE,
  448. KEYPAD_A,
  449. KEYPAD_B,
  450. KEYPAD_C,
  451. KEYPAD_D,
  452. KEYPAD_E,
  453. KEYPAD_F,
  454. KEYPAD_XOR,
  455. KEYPAD_CARET,
  456. KEYPAD_PERCENT,
  457. KEYPAD_LESS_THAN,
  458. KEYPAD_GREATER_THAN,
  459. KEYPAD_AMPERSAND,
  460. KEYPAD_DOUBLEAMPERSAND,
  461. KEYPAD_PIPE,
  462. KEYPAD_DOUBLEPIPE,
  463. KEYPAD_COLON,
  464. KEYPAD_POUND_SIGN,
  465. KEYPAD_SPACE,
  466. KEYPAD_AT_SIGN,
  467. KEYPAD_EXCLAMATION_POINT,
  468. KEYPAD_MEMORY_STORE,
  469. KEYPAD_MEMORY_RECALL,
  470. KEYPAD_MEMORY_CLEAR,
  471. KEYPAD_MEMORY_ADD,
  472. KEYPAD_MEMORY_SUBTRACT,
  473. KEYPAD_MEMORY_MULTIPLY,
  474. KEYPAD_MEMORY_DIVIDE,
  475. KEYPAD_PLUS_MINUS,
  476. KEYPAD_CLEAR,
  477. KEYPAD_CLEAR_ENTRY,
  478. KEYPAD_BINARY,
  479. KEYPAD_OCTAL,
  480. KEYPAD_DECIMAL,
  481. KEYPAD_HEXADECIMAL,
  482. KEY_RESERVED,
  483. KEY_RESERVED,
  484. KEY_LEFT_CTRL,
  485. KEY_LEFT_SHIFT,
  486. KEY_LEFT_ALT,
  487. KEY_LEFT_GUI,
  488. KEY_RIGHT_CTRL,
  489. KEY_RIGHT_SHIFT,
  490. KEY_RIGHT_ALT,
  491. KEY_RIGHT_GUI,
  492. KEY_RESERVED,
  493. KEY_RESERVED,
  494. KEY_RESERVED,
  495. KEY_RESERVED,
  496. KEY_RESERVED,
  497. KEY_RESERVED,
  498. KEY_RESERVED,
  499. KEY_RESERVED,
  500. KEY_RESERVED,
  501. KEY_RESERVED,
  502. KEY_RESERVED,
  503. KEY_RESERVED,
  504. KEY_RESERVED,
  505. KEY_RESERVED,
  506. KEY_RESERVED,
  507. KEY_RESERVED,
  508. KEY_RESERVED,
  509. KEY_RESERVED,
  510. KEY_RESERVED,
  511. KEY_RESERVED,
  512. KEY_RESERVED,
  513. KEY_RESERVED,
  514. KEY_RESERVED,
  515. KEY_RESERVED
  516. };