summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-01-14 18:42:32 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-01-14 18:42:32 +0000
commit2a4978b5f711b76f0094491b46f71eefdea119ae (patch)
tree97fad4432d130f63bb9bdfee8d9de504ecb262a7 /sys
parent0715eac24387cbbae46d7bfcc68be4c6bd8292e0 (diff)
clean up dmesg: '\n', speed up polling for 'rollover',
add F1-F5 for Cal, Addr, mail Home, Menu
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/zaurus/dev/zaurus_kbd.c6
-rw-r--r--sys/arch/zaurus/dev/zaurus_kbdmap.h12
2 files changed, 10 insertions, 8 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_kbd.c b/sys/arch/zaurus/dev/zaurus_kbd.c
index bffcaa98195..2c2ae40389e 100644
--- a/sys/arch/zaurus/dev/zaurus_kbd.c
+++ b/sys/arch/zaurus/dev/zaurus_kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_kbd.c,v 1.4 2005/01/14 16:39:15 miod Exp $ */
+/* $OpenBSD: zaurus_kbd.c,v 1.5 2005/01/14 18:42:31 drahn Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
*
@@ -194,6 +194,8 @@ zkbd_attach(struct device *parent, struct device *self, void *aux)
a.accessops = &zkbd_accessops;
a.accesscookie = sc;
+ printf("\n");
+
sc->sc_wskbddev = config_found(self, &a, wskbddevprint);
timeout_set(&(sc->sc_roll_to), zkbd_poll, sc);
@@ -289,7 +291,7 @@ printf("key %d %s\n", i, sc->sc_keystate[i] ? "pressed" : "released");
}
}
if (keysdown)
- timeout_add(&(sc->sc_roll_to), hz / 4); /* how long?*/
+ timeout_add(&(sc->sc_roll_to), hz / 8); /* how long?*/
else
timeout_del(&(sc->sc_roll_to)); /* always cancel? */
}
diff --git a/sys/arch/zaurus/dev/zaurus_kbdmap.h b/sys/arch/zaurus/dev/zaurus_kbdmap.h
index c15630b80aa..4d4b0e42e3d 100644
--- a/sys/arch/zaurus/dev/zaurus_kbdmap.h
+++ b/sys/arch/zaurus/dev/zaurus_kbdmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_kbdmap.h,v 1.8 2005/01/14 16:39:15 miod Exp $ */
+/* $OpenBSD: zaurus_kbdmap.h,v 1.9 2005/01/14 18:42:31 drahn Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
@@ -21,10 +21,10 @@
static const keysym_t zkbd_keydesc_us[] = {
KC(0), KS_Control_L,
KC(2), KS_Tab, KS_Tab, KS_Caps_Lock,
- /* KC(3), Addr, */
- /* KC(4), Cal, */
- /* KC(5), Mail, */
- /* KC(6), Home, */
+ KC(3), KS_f2, /* Addr, */
+ KC(4), KS_f1, /* Cal, */
+ KC(5), KS_f3, /* Mail, */
+ KC(6), KS_f4, /* Home, */
KC(8), KS_1, KS_exclam,
KC(9), KS_2, KS_quotedbl,
KC(10), KS_q,
@@ -59,7 +59,7 @@ static const keysym_t zkbd_keydesc_us[] = {
KC(43), KS_h, KS_H, KS_colon,
KC(44), KS_n,
KC(45), KS_comma, KS_slash, KS_greater,
- /* KC(46), Menu, */
+ KC(46), KS_f5, /* Menu, */
KC(48), KS_9, KS_parenright,
KC(49), KS_i, KS_I,
KC(50), KS_j, KS_J, KS_asterisk,