Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev/maple Harmonized keycodes with USB.
details: https://anonhg.NetBSD.org/src/rev/0e9c00e07d4d
branches: trunk
changeset: 504414:0e9c00e07d4d
user: marcus <marcus%NetBSD.org@localhost>
date: Fri Mar 02 00:25:06 2001 +0000
description:
Harmonized keycodes with USB.
diffstat:
sys/arch/dreamcast/dev/maple/mkbd.c | 6 ++--
sys/arch/dreamcast/dev/maple/mkbdmap.h | 43 ++++++++++++++++++---------------
2 files changed, 26 insertions(+), 23 deletions(-)
diffs (98 lines):
diff -r bff5bb26030f -r 0e9c00e07d4d sys/arch/dreamcast/dev/maple/mkbd.c
--- a/sys/arch/dreamcast/dev/maple/mkbd.c Thu Mar 01 23:45:56 2001 +0000
+++ b/sys/arch/dreamcast/dev/maple/mkbd.c Fri Mar 02 00:25:06 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkbd.c,v 1.6 2001/02/22 15:34:28 msaitoh Exp $ */
+/* $NetBSD: mkbd.c,v 1.7 2001/03/02 00:25:06 marcus Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt
@@ -192,7 +192,7 @@
switch (cmd) {
case WSKBDIO_GTYPE:
- *(int *)data = 0; /* XXX */
+ *(int *)data = WSKBD_TYPE_USB; /* XXX */
return 0;
case WSKBDIO_SETLEDS:
return 0;
@@ -221,7 +221,7 @@
static int polledkey;
extern int maple_polling;
-#define SHIFT_KEYCODE_BASE 0x100
+#define SHIFT_KEYCODE_BASE 0xe0
#define UP_KEYCODE_FLAG 0x1000
#define KEY_UP(n) \
diff -r bff5bb26030f -r 0e9c00e07d4d sys/arch/dreamcast/dev/maple/mkbdmap.h
--- a/sys/arch/dreamcast/dev/maple/mkbdmap.h Thu Mar 01 23:45:56 2001 +0000
+++ b/sys/arch/dreamcast/dev/maple/mkbdmap.h Fri Mar 02 00:25:06 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkbdmap.h,v 1.4 2001/01/31 03:19:50 thorpej Exp $ */
+/* $NetBSD: mkbdmap.h,v 1.5 2001/03/02 00:25:06 marcus Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt
@@ -75,7 +75,8 @@
KC(39), KS_0, KS_asciitilde,
KC(40), KS_Return,
- KC(41), KS_Escape,
+ KC(41), KS_Cmd_Debugger,
+ KS_Escape,
KC(42), KS_BackSpace,
KC(43), KS_Tab,
KC(44), KS_space,
@@ -95,16 +96,16 @@
KC(57), KS_Caps_Lock,
- KC(58), KS_f1,
- KC(59), KS_f2,
- KC(60), KS_f3,
- KC(61), KS_f4,
- KC(62), KS_f5,
- KC(63), KS_f6,
- KC(64), KS_f7,
- KC(65), KS_f8,
- KC(66), KS_f9,
- KC(67), KS_f10,
+ KC(58), KS_Cmd_Screen0, KS_f1,
+ KC(59), KS_Cmd_Screen1, KS_f2,
+ KC(60), KS_Cmd_Screen2, KS_f3,
+ KC(61), KS_Cmd_Screen3, KS_f4,
+ KC(62), KS_Cmd_Screen4, KS_f5,
+ KC(63), KS_Cmd_Screen5, KS_f6,
+ KC(64), KS_Cmd_Screen6, KS_f7,
+ KC(65), KS_Cmd_Screen7, KS_f8,
+ KC(66), KS_Cmd_Screen8, KS_f9,
+ KC(67), KS_Cmd_Screen9, KS_f10,
KC(68), KS_f11,
KC(69), KS_f12,
@@ -136,14 +137,16 @@
KC(138), KS_Henkan_Mode,
KC(139), KS_Muhenkan,
- KC(0x100), KS_Control_L,
- KC(0x101), KS_Shift_L,
- KC(0x102), KS_Alt_L,
- KC(0x103), KS_Meta_L,
- KC(0x104), KS_Control_R,
- KC(0x105), KS_Shift_R,
- KC(0x106), KS_Alt_R,
- KC(0x107), KS_Meta_R,
+ KC(0xe0), KS_Cmd1,
+ KS_Control_L,
+ KC(0xe1), KS_Shift_L,
+ KC(0xe2), KS_Cmd2,
+ KS_Alt_L,
+ KC(0xe3), KS_Meta_L,
+ KC(0xe4), KS_Control_R,
+ KC(0xe5), KS_Shift_R,
+ KC(0xe6), KS_Alt_R, KS_Multi_key,
+ KC(0xe7), KS_Meta_R,
};
Home |
Main Index |
Thread Index |
Old Index