4 # This file is used by Angband (when it was compiled using "main-ibm.c"
5 # or "main-dos.c" or "main-win.c") to specify various "user preferences",
8 # This file defines some basic macros, which allow the use of the "keypad",
9 # alone, and with the shift and/or control modifier keys. All "special"
10 # keys are translated by "main-ibm.c" (or "main-win.c") into special "macro
11 # triggers" of the encoded form "^_MMMxSS\r", where the "modifier" flags are
12 # stored in "MMM", and the two digit hexidecimal scan code of the keypress is
15 # The "main-ibm.prf" and "main-dos.prf" files may not be able to recognize
16 # the "/" and "*" keys on the keypad, because it mistakenly classifies the
17 # "0x35" and "0x37" codes as the keycodes of "normal" keys.
19 # The "main-win.prf" file should not be using the final "control + keypad"
20 # section in this file, it was created for "main-ibm.c" and "main-dos.c".
22 # The "main-win.prf" file may actually send the "ascii" equivalent of some
23 # keypad keys after the keypad key itself, especially if "numlock" is down,
24 # which may cause problems. Or it may not, it is hard to tell. This is bad.
26 # See "main-ibm.c" and "main-dos.c" and "main-win.c" for more info.
31 # Macro Trigger configuration
33 # T:<trigger template>:<modifiers>:<modifier name1>:<modifier name2>:....
34 # '&' in <trigger template> specifies location of modifier character.
35 # '#' in <trigger template> specifies location of key code.
37 # If <trigger template> is null string, all trigger difinition will be cleared.
39 T:&x#:CSA:control-:shift-:alt-
41 # T:<trigger name>:<keycode>:<keycode with shiftkey>
42 # '\' in <trigger name> is escape character.
44 # These keycodes are actually direct keyboard scan code taken from the 'dinput.h'.
46 ?:[EQU $KEYBOARD JAPAN]
47 # For Japanese keyboard.
77 # Common keycodes (except NEC PC-98x1)
79 ?:[NOT [EQU $KEYBOARD NEC98]]
164 T:Hiragana_Katakana:70
217 ######################
220 ?:[EQU $KEYBOARD NEC98]
317 T:Hiragana_Katakana:72
320 ?:[NOT [EQU $KEYBOARD NEC98]]
324 # Hack -- Some foreign keyboards have a special key on the keyboard, which
325 # is used to generate the "<", ">", and "|" keys (alone, shifted, alt-ed).
339 # Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
434 # Shift + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
529 # Control + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
624 # Control + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)