annotate semiconginev2/platform/windows/virtualkey_map.nim @ 1225:27cd1c21290e compiletime-tests

did: refactor resources
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 22:20:59 +0700
parents 56781cc0fc7c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
1 const KeyTypeMap* = {
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2 VK_ESCAPE: Key.Escape, VK_F1: F1, VK_F2: F2, VK_F3: F3, VK_F4: F4, VK_F5: F5,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3 VK_F6: F6, VK_F7: F7, VK_F8: F8, VK_F9: F9, VK_F10: F10, VK_F11: F11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4 VK_F12: F12,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5 VK_OEM_3: NumberRowExtra1, int('0'): `0`, int('1'): `1`, int('2'): `2`, int(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 '3'): `3`, int('4'): `4`, int('5'): `5`, int('6'): `6`, int('7'): `7`,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 int('8'): `8`, int('9'): `9`, VK_OEM_MINUS: NumberRowExtra2,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 VK_OEM_PLUS: NumberRowExtra3,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 int('A'): A, int('B'): B, int('C'): C, int('D'): D, int('E'): E, int('F'): F,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 int('G'): G, int('H'): H, int('I'): I, int('J'): J, int('K'): K, int(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 'L'): L, int('M'): M, int('N'): N, int('O'): O, int('P'): P, int('Q'): Q,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 int('R'): R, int('S'): S, int('T'): T, int('U'): U, int('V'): V, int(
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 'W'): W, int('X'): X, int('Y'): Y, int('Z'): Z,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 VK_TAB: Tab, VK_CAPITAL: CapsLock, VK_LSHIFT: ShiftL, VK_SHIFT: ShiftL,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 VK_RSHIFT: ShiftR, VK_LCONTROL: CtrlL, VK_CONTROL: CtrlL,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16 VK_RCONTROL: CtrlR, VK_LWIN: SuperL, VK_RWIN: SuperR, VK_LMENU: AltL,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17 VK_RMENU: AltR, VK_SPACE: Space, VK_RETURN: Enter, VK_BACK: Backspace,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18 VK_OEM_4: LetterRow1Extra1, VK_OEM_6: LetterRow1Extra2,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 VK_OEM_5: LetterRow2Extra3,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 VK_OEM_1: LetterRow2Extra1, VK_OEM_7: LetterRow2Extra2,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 VK_OEM_COMMA: LetterRow3Extra1, VK_OEM_PERIOD: LetterRow3Extra2,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22 VK_OEM_2: LetterRow3Extra3,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 VK_UP: Up, VK_DOWN: Down, VK_LEFT: Left, VK_RIGHT: Right,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24 VK_PRIOR: PageUp, VK_NEXT: PageDown, VK_HOME: Home, VK_END: End,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 VK_INSERT: Insert, VK_DELETE: Key.Delete,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26 }.toTable