[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pbsd-mg2] Small patch to vrkiu.c
Enclosed please find a small patch to print the unknown scan code when
one is encountered. It helps when mapping new keyboards. The line
numbers may be off because I have two keymaps in my vrkiu.c which
I've not included in this patch.
Warner
P.S. I'm recovering my Japanese machine from a crash, so I cannot do
Japanese for a few days (maybe tomorrow, if I'm lucky).
Index: vrkiu.c
===================================================================
RCS file: /cvs/jproot//hpcmips/sys/arch/hpcmips/vr/vrkiu.c,v
retrieving revision 1.4
diff -u -r1.4 vrkiu.c
--- vrkiu.c 1999/08/06 17:36:19 1.4
+++ vrkiu.c 1999/08/07 06:46:55
@@ -336,7 +353,10 @@
}
k ^= 1 << n;
m = n + i * 16;
- if (keytrans[m] < 0) continue;
+ if (keytrans[m] < 0) {
+ printf("vrkiu: Unkown scan code 0x%02x\n", m);
+ continue;
+ }
/* XXX: scanbuf may overflow! */
process_key(sc, keytrans[m],