summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-11 18:17:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-11 18:17:41 +0000
commit813f43d85161abd7f1d3819c4a1a8782d0751bf7 (patch)
tree1ea669c6014dfa3797c61d15c7a24538b354cfd1 /sys/arch/zaurus
parente8d7f045678a3fbd3d2e3f786b4045c7dbefba07 (diff)
first key is scanned based on interrupt. but if a key is held down
(ie. shift) then we cound on timeouts to re-scan the keyboard. 8 scans a second was too slow. change to 20 scans a second, which makes (hit the keys repeatedly, do not use auto-repeat) NNNNNN work just like nnnnnn does. ok drahn, sort of ok-chatter from miod
Diffstat (limited to 'sys/arch/zaurus')
-rw-r--r--sys/arch/zaurus/dev/zaurus_kbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_kbd.c b/sys/arch/zaurus/dev/zaurus_kbd.c
index 43190661da4..a264c633693 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.24 2005/11/11 16:58:46 deraadt Exp $ */
+/* $OpenBSD: zaurus_kbd.c,v 1.25 2005/11/11 18:17:40 deraadt Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
*
@@ -434,7 +434,7 @@ zkbd_poll(void *v)
}
#endif
if (keysdown)
- timeout_add(&(sc->sc_roll_to), hz / 8); /* how long?*/
+ timeout_add(&(sc->sc_roll_to), hz * REP_DELAYN / 1000 / 2);
else
timeout_del(&(sc->sc_roll_to)); /* always cancel? */