Vice X11 sym.vkm


 * 1) VICE keyboard mapping file
 * 2) A Keyboard map is read in as patch to the current map.
 * 3) File format:
 * 4) - comment lines start with '#'
 * 5) - keyword lines start with '!keyword'
 * 6) - normal line has 'keysym/scancode row column shiftflag'
 * 7) Keywords and their lines are:
 * 8) '!CLEAR'               clear whole table
 * 9) '!INCLUDE filename'    read file as mapping file
 * 10) '!LSHIFT row col'      left shift keyboard row/column
 * 11) '!RSHIFT row col'      right shift keyboard row/column
 * 12) '!VSHIFT shiftkey'     virtual shift key (RSHIFT or LSHIFT)
 * 13) '!UNDEF keysym'        remove keysym from table
 * 14) Shiftflag can have the values:
 * 15) 0      key is not shifted for this keysym/scancode
 * 16) 1      key is shifted for this keysym/scancode
 * 17) 2      left shift
 * 18) 4      right shift
 * 19) 8      key can be shifted or not with this keysym/scancode
 * 20) 16     deshift key for this keysym/scancode
 * 21) 32     another definition for this keysym/scancode follows
 * 22) Negative row values:
 * 23) 'keysym -1 n' joystick #1, direction n
 * 24) 'keysym -2 n' joystick #2, direction n
 * 25) 'keysym -3 0' first RESTORE key
 * 26) 'keysym -3 1' second RESTORE key
 * 27) 'keysym -4 0' 40/80 column key
 * 28) 'keysym -4 1' CAPS (ASCII/DIN) key
 * 1) 'keysym -2 n' joystick #2, direction n
 * 2) 'keysym -3 0' first RESTORE key
 * 3) 'keysym -3 1' second RESTORE key
 * 4) 'keysym -4 0' 40/80 column key
 * 5) 'keysym -4 1' CAPS (ASCII/DIN) key

!CLEAR !LSHIFT 1 7 !RSHIFT 6 4 !VSHIFT RSHIFT

Tab 7 2 8          /* Tab = CTRL */ ISO_Left_Tab 7 2 8 /* Shift + Tab = CTRL */ Control_L 7 5 8    /* Control_L = CBM */ BackSpace 0 0 8 Delete 0 0 8 Down 0 7 8 Escape 7 7 8 F1 0 4 8 F2 0 4 1 F3 0 5 8 F4 0 5 1 F5 0 6 8 F6 0 6 1 F7 0 3 8 F8 0 3 1 Home 6 3 8 Insert 0 0 16 KP_F1 0 4 8 KP_F2 0 5 8 KP_F3 0 6 8 KP_F4 0 2 8 Left 0 2 1 Return 0 1 8 Right 0 2 8 Shift_L 1 7 2 Shift_R 6 4 4 Up 0 7 1 ampersand 2 3 1 apostrophe 3 0 1 asciicircum 6 6 0 asciitilde 6 6 0 asterisk 6 1 0 at 5 6 0 backslash 6 0 0 bar 6 0 8 bracketleft 5 5 1 bracketright 6 2 1 colon 5 5 0 comma 5 7 0 dollar 1 3 1 equal 6 5 0 exclam 7 0 1 grave 6 6 0 greater 5 4 1 less 5 7 1 minus 5 3 0 numbersign 1 0 1 parenleft 3 3 1 parenright 4 0 1 percent 2 0 1 period 5 4 0 plus 5 0 0 question 6 7 1 quotedbl 7 3 1 semicolon 6 2 0 slash 6 7 0 space 7 4 8 sterling 6 0 0 underscore 7 1 0 0 4 3 0 1 7 0 0 2 7 3 0 3 1 0 0 4 1 3 0 5 2 0 0 6 2 3 0 7 3 0 0 8 3 3 0 9 4 0 0 A 1 2 1 B 3 4 1 C 2 4 1 D 2 2 1 E 1 6 1 F 2 5 1 G 3 2 1 H 3 5 1 I 4 1 1 J 4 2 1 K 4 5 1 L 5 2 1 M 4 4 1 N 4 7 1 O 4 6 1 P 5 1 1 Q 7 6 1 R 2 1 1 S 1 5 1 T 2 6 1 U 3 6 1 V 3 7 1 W 1 1 1 X 2 7 1 Y 3 1 1 Z 1 4 1 a 1 2 8 b 3 4 8 c 2 4 8 d 2 2 8 e 1 6 8 f 2 5 8 g 3 2 8 h 3 5 8 i 4 1 8 j 4 2 8 k 4 5 8 l 5 2 8 m 4 4 8 n 4 7 8 o 4 6 8 p 5 1 8 q 7 6 8 r 2 1 8 s 1 5 8 t 2 6 8 u 3 6 8 v 3 7 8 w 1 1 8 x 2 7 8 y 3 1 8 z 1 4 8

KP_0 -1 0 KP_1 -1 1 KP_2 -1 2 KP_3 -1 3 KP_4 -1 4 KP_5 -1 5 KP_6 -1 6 KP_7 -1 7 KP_8 -1 8 KP_9 -1 9
 * 1) Joystick 1
 * 1) Joystick 1

Up -2 8 Left -2 4 Right -2 6 Down -2 2 space -2 0
 * 1) Joystick 2
 * 2) w -2 7
 * 3) e -2 8
 * 4) r -2 9
 * 5) s -2 4
 * 6) d -2 5
 * 7) f -2 6
 * 8) x -2 1
 * 9) c -2 2
 * 10) v -2 3
 * 11) space -2 0
 * 12) Joystick 2
 * 13) w -2 7
 * 1) Joystick 2
 * 2) w -2 7
 * 1) w -2 7
 * 1) w -2 7
 * 1) r -2 9
 * 1) d -2 5
 * 1) x -2 1
 * 1) v -2 3

Page_Up -3 0 Prior -3 1
 * 1) Restore key mappings