summaryrefslogtreecommitdiffstats
path: root/sys/dev/kbd/kbdreg.h
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>2001-07-20 13:05:57 +0000
committeryokota <yokota@FreeBSD.org>2001-07-20 13:05:57 +0000
commit5bdd55fe335c85187c6f689240776d3578198a03 (patch)
tree4326f68a54d447c94f4a84c2fb697802d2377223 /sys/dev/kbd/kbdreg.h
parent4b023c5a9f160b15b1ae45ac500512e1209b8c02 (diff)
downloadFreeBSD-src-5bdd55fe335c85187c6f689240776d3578198a03.zip
FreeBSD-src-5bdd55fe335c85187c6f689240776d3578198a03.tar.gz
Return consistent key action codes at key press and release
events. Otherwise you would see unexpected results if shift or locking keys are defined to give different actions depending on other shift/locking keys' state. Please keep the ukbd module and the kernel in sync, otherwise the USB keyboard won't work after this change. MFC after: 10 days
Diffstat (limited to 'sys/dev/kbd/kbdreg.h')
-rw-r--r--sys/dev/kbd/kbdreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/kbd/kbdreg.h b/sys/dev/kbd/kbdreg.h
index 55e0cef..3745dc1 100644
--- a/sys/dev/kbd/kbdreg.h
+++ b/sys/dev/kbd/kbdreg.h
@@ -89,6 +89,7 @@ struct keyboard {
#define KB_DELAY1 500
#define KB_DELAY2 100
unsigned long kb_count; /* # of processed key strokes */
+ u_char kb_lastact[NUM_KEYS/2];
};
#define KBD_IS_VALID(k) ((k)->kb_flags & KB_VALID)
OpenPOWER on IntegriCloud