summaryrefslogtreecommitdiffstats
path: root/sys/dev/kbd/kbdreg.h
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-12-10 04:31:33 +0000
committeryokota <yokota@FreeBSD.org>1999-12-10 04:31:33 +0000
commit05b112defa6475261451632c0c709f7d9002ed41 (patch)
treedb754c48c6ca4e46dfe92004d39d6744967c4466 /sys/dev/kbd/kbdreg.h
parentea70ddbc7ebf9ea257c1659822de64baf3e8c753 (diff)
downloadFreeBSD-src-05b112defa6475261451632c0c709f7d9002ed41.zip
FreeBSD-src-05b112defa6475261451632c0c709f7d9002ed41.tar.gz
Add support new keys: lshifta, rshifta, lctrla, rctrla, lalta, and
ralta. These keys combine shift/ctrl/alt function and the AltLock function. When these keys pressed together with another key, they act just like the ordinary shift/ctrl/alt keys. When these keys are pressed and released alone, Alt lock state is toggled. PR: kern/12475
Diffstat (limited to 'sys/dev/kbd/kbdreg.h')
-rw-r--r--sys/dev/kbd/kbdreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/kbd/kbdreg.h b/sys/dev/kbd/kbdreg.h
index 4fc5fd6..1b90871 100644
--- a/sys/dev/kbd/kbdreg.h
+++ b/sys/dev/kbd/kbdreg.h
@@ -88,6 +88,8 @@ struct keyboard {
int kb_delay2;
#define KB_DELAY1 500
#define KB_DELAY2 100
+ int kb_prev_key; /* keycode previously seen */
+ unsigned long kb_count; /* # of processed key strokes */
};
#define KBD_IS_VALID(k) ((k)->kb_flags & KB_VALID)
OpenPOWER on IntegriCloud