# VICE keyboard mapping file # # A Keyboard map is read in as patch to the current map. # # File format: # - comment lines start with '#' # - keyword lines start with '!keyword' # - normal line has 'keysym/scancode row column shiftflag' # # Keywords and their lines are: # '!CLEAR' clear whole table # '!INCLUDE filename' read file as mapping file # '!LSHIFT row col' left shift keyboard row/column # '!RSHIFT row col' right shift keyboard row/column # '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT) # '!UNDEF keysym' remove keysym from table # # Shiftflag can have the values: # 0 key is not shifted for this keysym # 1 key is shifted for this keysym # 2 left shift # 4 right shift # 8 key can be shifted or not with this keysym # # Negative row values: # 'keysym -1 n' joystick #1, direction n # 'keysym -2 n' joystick #2, direction n # 'keysym -3 0' first RESTORE key # 'keysym -3 1' second RESTORE key # 'keysym -4 0' 40/80 column key # 'keysym -4 1' CAPS (ASCII/DIN) key # !CLEAR !LSHIFT 1 7 !RSHIFT 6 4 !VSHIFT RSHIFT 0 7 1 8 /* ` -> Left Arrow */ 1 7 0 8 /* 1 -> 1 */ 2 7 3 8 /* 2 -> 2 */ 3 1 0 8 /* 3 -> 3 */ 4 1 3 8 /* 4 -> 4 */ 5 2 0 8 /* 5 -> 5 */ 6 2 3 8 /* 6 -> 6 */ 7 3 0 8 /* 7 -> 7 */ 8 3 3 8 /* 8 -> 8 */ 9 4 0 8 /* 9 -> 9 */ 10 4 3 8 /* 0 -> 0 */ 11 5 0 8 /* Plus -> Plus */ 12 5 3 8 /* ´ -> Minus */ 13 6 3 8 /* \ -> CLR/HOME */ #14 -1 -1 0 /* -> (no key) */ #15 -1 -1 0 /* KEYPAD 0 -> (no key) */ 16 7 6 8 /* Q -> Q */ 17 1 1 8 /* W -> W */ 18 1 6 8 /* E -> E */ 19 2 1 8 /* R -> R */ 20 2 6 8 /* T -> T */ 21 3 1 8 /* Y -> Y */ 22 3 6 8 /* U -> U */ 23 4 1 8 /* I -> I */ 24 4 6 8 /* O -> O */ 25 5 1 8 /* P -> P */ 26 5 6 8 /* (å) [ -> @ */ 27 6 1 8 /* (¨) ] -> * */ #28 -1 -1 0 /* -> (no key) */ #29 -1 -1 0 /* KEYPAD 1 -> (no key) */ #30 -1 -1 0 /* KEYPAD 2 -> (no key) */ #31 -1 -1 0 /* KEYPAD 3 -> (no key) */ 32 1 2 8 /* A -> A */ 33 1 5 8 /* S -> S */ 34 2 2 8 /* D -> D */ 35 2 5 8 /* F -> F */ 36 3 2 8 /* G -> G */ 37 3 5 8 /* H -> H */ 38 4 2 8 /* J -> J */ 39 4 5 8 /* K -> K */ 40 5 2 8 /* L -> L */ 41 5 5 8 /* ; -> : */ 42 6 2 8 /* ' -> ; */ 43 6 5 8 /* \ -> = */ #44 -1 -1 0 /* -> (no key) */ #45 -1 -1 0 /* KEYPAD 4 -> (no key) */ #46 -1 -1 0 /* KEYPAD 5 -> (no key) */ #47 -1 -1 0 /* KEYPAD 6 -> (no key) */ 48 6 5 8 /* < -> = */ 49 1 4 8 /* Z -> Z */ 50 2 7 8 /* X -> X */ 51 2 4 8 /* C -> C */ 52 3 7 8 /* V -> V */ 53 3 4 8 /* B -> B */ 54 4 7 8 /* N -> N */ 55 4 4 8 /* M -> M */ 56 5 7 8 /* , -> , */ 57 5 4 8 /* . -> . */ 58 6 7 8 /* / -> / */ #59 -1 -1 0 /* -> (no key) */ #60 -1 -1 0 /* KEYPAD DEL -> (no key) */ #61 -1 -1 0 /* KEYPAD 7 -> (no key) */ #62 -1 -1 0 /* KEYPAD 8 -> (no key) */ #63 -1 -1 0 /* KEYPAD 9 -> (no key) */ 64 7 4 8 /* Space -> Space */ 65 0 0 8 /* Backspace -> Del */ 66 7 2 8 /* TAB -> Ctrl */ #67 -1 -1 0 /* KEYPAD ENTER -> (no key) */ 68 0 1 8 /* Return -> Return */ 69 7 7 8 /* ESC -> Run/Stop */ 70 6 0 8 /* DEL -> Pound */ #71 -1 -1 0 /* -> (no key) */ #72 -1 -1 0 /* -> (no key) */ #73 -1 -1 0 /* -> (no key) */ #74 -1 -1 0 /* KEYPAD - -> (no key) */ #75 -1 -1 0 /* -> (no key) */ 76 0 7 1 /* Up -> CRSR UP */ 77 0 7 8 /* Down -> CRSR DOWN */ 78 0 2 8 /* Right -> CRSR RIGHT */ 79 0 2 1 /* Left -> CRSR LEFT */ 80 0 4 8 /* F1 -> F1 */ 81 0 4 1 /* F2 -> F2 */ 82 0 5 8 /* F3 -> F3 */ 83 0 5 1 /* F4 -> F4 */ 84 0 6 8 /* F5 -> F5 */ 85 0 6 1 /* F6 -> F6 */ 86 0 3 8 /* F7 -> F7 */ 87 0 3 1 /* F8 -> F8 */ #88 -1 -1 0 /* F9 -> (no key) */ #89 -1 -1 0 /* F10 -> (no key) */ #90 -1 -1 0 /* NUMLOCK -> (no key) */ #91 -1 -1 0 /* SCRLOCK -> (no key) */ #92 -1 -1 0 /* KEYPAD SLASH -> (no key) */ #93 -1 -1 0 /* KEYPAD * -> (no key) */ #94 -1 -1 0 /* KEYPAD + -> (no key) */ 95 6 6 8 /* HELP -> Up Arrow */ 96 1 7 2 /* Left Shift -> Left Shift */ 97 6 4 4 /* Right Shift -> Right Shift */ #98 -1 -1 0 /* CAPSLOCK -> (no key) */ 99 7 5 8 /* Ctrl -> CBM */ #100 -1 -1 0 /* LEFT ALT -> (no key) */ #101 -1 -1 0 /* RIGHT ALT -> (no key) */ #102 -1 -1 0 /* LEFT AMIGA -> (no key) */ #103 -1 -1 0 /* RIGHT AMIGA -> (no key) */ # Restore key mappings 89 -3 0 /* F10 -> RESTORE */