annotate keymap.c @ 3:5a977ccbc7a9 default tip

Empty changelog
author darius
date Sat, 06 Dec 1997 05:41:29 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
1 /* $Id: keymap.c,v 1.1.1.1 1997/12/06 05:41:29 darius Exp $ */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
3 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
4 * keymap.c
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
5 * Bill Dyess, 10/20/93
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
6 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
7
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
8 #include "copyright.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
9 #include <stdio.h>
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
10 /*#include <sys/types.h>
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
11 #ifdef RS6K
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
12 #include <sys/select.h>
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
13 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
14 #include <signal.h>
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
15 #include <errno.h>
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
16 #include "packets.h"*/
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
17 #include "Wlib.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
18 #include "defs.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
19 #include "struct.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
20 #include "data.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
21 #include "proto.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
22
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
23 #define control(x) (x)+128
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
24
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
25 int
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
26 doKeymap(data)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
27 W_Event *data;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
28 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
29 int key = data->key;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
30
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
31 #ifdef MACROS
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
32 if (macroState) { /* macro needed a destination or in macro
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
33 mode */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
34 if (key > 256 && data->type != W_EV_BUTTON) { /* an alt-key will exit
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
35 the macro mode */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
36 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
37 but let mouse buttons do macros! button conversion is done by
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
38 calling function.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
39 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
40 warning(" ");
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
41 } else {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
42 if (key > 256)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
43 data->key -= 256;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
44 doMacro(data);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
45 return -1;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
46 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
47 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
48 #endif /* MACROS */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
49
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
50 if (key < 256) { /* not alt key */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
51 key = myship->s_keymap[key];
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
52
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
53 #ifdef MACROS
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
54 if (macrotable[key] && (macrotable[key]->flags & MACSINGLE)) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
55 data->key = key;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
56 doMacro(data);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
57 return -1;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
58 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
59 #endif /* MACROS */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
60
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
61 } else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
62 key = key - 256;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
63 return key;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
64 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
65
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
66 unsigned char def_keymap[256];
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
67 unsigned char def_buttonmap[12];
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
68 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
69 buildShipKeymap(shipp)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
70 struct ship *shipp;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
71 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
72 char keybuf[40], ckeybuf[40], buttonbuf[40], cbuttonbuf[40];
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
73 struct stringlist *l;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
74
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
75 bcopy(def_keymap, shipp->s_keymap, 256);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
76 bcopy(def_buttonmap, shipp->s_buttonmap, 12);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
77
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
78 sprintf(keybuf, "keymap.%c%c", shipp->s_desig[0], shipp->s_desig[1]);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
79 sprintf(ckeybuf, "ckeymap.%c%c", shipp->s_desig[0], shipp->s_desig[1]);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
80 sprintf(buttonbuf, "buttonmap.%c%c", shipp->s_desig[0], shipp->s_desig[1]);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
81 sprintf(cbuttonbuf, "cbuttonmap.%c%c", shipp->s_desig[0], shipp->s_desig[1]);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
82
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
83 for (l = defaults; l; l = l->next) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
84 if (!strcmpi(keybuf, l->string))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
85 keymapAdd(l->value, shipp->s_keymap);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
86 else if (!strcmpi(ckeybuf, l->string))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
87 ckeymapAdd(l->value, shipp->s_keymap);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
88 else if (!strcmpi(buttonbuf, l->string))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
89 buttonmapAdd(l->value, shipp->s_buttonmap);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
90 else if (!strcmpi(cbuttonbuf, l->string))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
91 cbuttonmapAdd(l->value, shipp->s_buttonmap);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
92 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
93 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
94
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
95 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
96 initkeymap(type)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
97 int type;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
98 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
99 char keybuf[40], ckeybuf[40], buttonbuf[40], cbuttonbuf[40];
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
100 struct ship *sh;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
101 int i, j;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
102 struct stringlist *l;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
103
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
104 keybuf[0] = ckeybuf[0] = buttonbuf[0] = cbuttonbuf[0] = 0;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
105
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
106 if (type < 0) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
107 for (i = 0; i < 256; i++)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
108 def_keymap[i] = i;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
109
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
110 for (l = defaults; l; l = l->next) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
111 if (!strcmpi("keymap", l->string))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
112 keymapAdd(l->value, def_keymap);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
113 else if (!strcmpi("ckeymap", l->string))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
114 ckeymapAdd(l->value, def_keymap);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
115 else if (!strcmpi("buttonmap", l->string))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
116 buttonmapAdd(l->value, def_buttonmap);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
117 else if (!strcmpi("cbuttonmap", l->string))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
118 cbuttonmapAdd(l->value, def_buttonmap);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
119 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
120
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
121 for (j = 0; j < nshiptypes; j++) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
122 buildShipKeymap(getship(j));
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
123 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
124 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
125 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
126
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
127 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
128 keymapAdd(str, map)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
129 char *str, *map;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
130 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
131 if (str) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
132 /* parse non-control char keymap */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
133 while (*str != '\0' && *(str + 1) != '\0') {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
134 if (*str >= 32 && *str < 127) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
135 map[(int) *str] = *(str + 1);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
136 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
137 str += 2;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
138 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
139 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
140 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
141
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
142 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
143 ckeymapAdd(cstr, map)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
144 char *cstr, *map;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
145 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
146 unsigned char key[2];
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
147 short state = 0;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
148
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
149 if (cstr) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
150 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
151 control chars are allowed, so use ^char to mean control, and ^^ to
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
152 mean ^
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
153 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
154 while (*cstr != '\0') {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
155 if (*cstr == '^') {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
156 cstr++;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
157 if (*cstr == '^' || !*cstr)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
158 key[state] = '^';
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
159 else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
160 key[state] = 128 + *cstr;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
161 } else {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
162 key[state] = *cstr;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
163 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
164 if (*cstr)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
165 cstr++;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
166 if (state)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
167 map[key[0]] = key[1];
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
168 state = 1 - state;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
169 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
170 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
171 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
172
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
173 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
174 buttonmapAdd(str, map)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
175 char *str, *map;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
176 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
177 unsigned char button, ch;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
178
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
179 if (str) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
180 while (*str != '\0' && *(str + 1) != '\0') {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
181 if (*str < 'a')
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
182 button = *str++ - '1';
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
183 else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
184 button = 9 + *str++ - 'a';
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
185 if (button > 11)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
186 fprintf(stderr, "%c ignored in buttonmap\n", *(str - 1));
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
187 else {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
188 ch = *str++;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
189 map[button] = ch;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
190 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
191 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
192 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
193 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
194
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
195 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
196 cbuttonmapAdd(cstr, map)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
197 char *cstr, *map;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
198 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
199 unsigned char button, ch;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
200
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
201 if (cstr) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
202 while (*cstr != '\0' && *(cstr + 1) != '\0') {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
203 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
204 code for cbuttonmap, which allows buttons to be mapped to
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
205 control keys. [BDyess]
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
206 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
207 if (*cstr < 'a')
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
208 button = *cstr++ - '1';
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
209 else
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
210 button = 9 + *cstr++ - 'a';
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
211 if (button > 11)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
212 fprintf(stderr, "%c ignored in cbuttonmap\n", *(cstr - 1));
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
213 else {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
214 ch = *cstr++;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
215 if (ch == '^') {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
216 ch = *cstr++;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
217 if (ch != '^')
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
218 ch += 128;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
219 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
220 map[button] = ch;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
221 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
222 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
223 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
224 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
225
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
226 #ifdef KEYMAP_DEBUG
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
227 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
228 dumpKeymap()
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
229 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
230 int i;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
231
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
232 for (i = 0; i < 256; i++) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
233 printf("%3d %c : %3d %c\n",
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
234 i,
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
235 isprint(i) ? i : '_',
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
236 myship->s_keymap[i],
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
237 isprint(myship->s_keymap[i]) ? myship->s_keymap[i] : '_');
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
238 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
239 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
240 #endif /* KEYMAP_DEBUG */