1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
# File: pref-sdl.prf
# This file implements macros for extended keyboard commands (characters not
# within the 128 character ASCII set).
# Basically, if you have to hold down control or alt or it's an arrow key,
# it will be handled here. This means that we can let SDL worry about figuring
# out what key is which; all it needs to do is give us the name and we'll map
# it here.
#
# Note the use of "\e\e\e\e" (four escapes) to allow the macros to work
# even if the game is not yet ready for a command.
#
# Note the use of "\\." (for "run") and "\\+" (for "alter"), to make sure
# that the macros will work regardless of the "keymap" being used.
#
# Basic Arrow Movement
A:8
P:\[up]
A:6
P:\[right]
A:4
P:\[left]
A:2
P:\[down]
# Basic Arrows with Shift Down
A:\e\e\e\e\\.8
P:\[shift-up]
A:\e\e\e\e\\.6
P:\[shift-right]
A:\e\e\e\e\\.4
P:\[shift-left]
A:\e\e\e\e\\.2
P:\[shift-down]
# Basic Arrows with Control Down
A:\e\e\e\e\\+8
P:\[ctrl-up]
A:\e\e\e\e\\+6
P:\[ctrl-right]
A:\e\e\e\e\\+4
P:\[ctrl-left]
A:\e\e\e\e\\+2
P:\[ctrl-down]
# Keypad
A:1
P:\[[1]]
A:2
P:\[[2]]
A:3
P:\[[3]]
A:4
P:\[[4]]
A:5
P:\[[5]]
A:6
P:\[[6]]
A:7
P:\[[7]]
A:8
P:\[[8]]
A:9
P:\[[9]]
# Keypad With Shift
A:\e\e\e\e\\.1
P:\[shift-[1]]
A:\e\e\e\e\\.2
P:\[shift-[2]]
A:\e\e\e\e\\.3
P:\[shift-[3]]
A:\e\e\e\e\\.4
P:\[shift-[4]]
A:\e\e\e\e\\.5
P:\[shift-[5]]
A:\e\e\e\e\\.6
P:\[shift-[6]]
A:\e\e\e\e\\.7
P:\[shift-[7]]
A:\e\e\e\e\\.8
P:\[shift-[8]]
A:\e\e\e\e\\.9
P:\[shift-[9]]
# Keypad With Control
A:\e\e\e\e\\+1
P:\[ctrl-[1]]
A:\e\e\e\e\\+2
P:\[ctrl-[2]]
A:\e\e\e\e\\+3
P:\[ctrl-[3]]
A:\e\e\e\e\\+4
P:\[ctrl-[4]]
A:\e\e\e\e\\+5
P:\[ctrl-[5]]
A:\e\e\e\e\\+6
P:\[ctrl-[6]]
A:\e\e\e\e\\+7
P:\[ctrl-[7]]
A:\e\e\e\e\\+8
P:\[ctrl-[8]]
A:\e\e\e\e\\+9
P:\[ctrl-[9]]
|