summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>2000-01-11 13:39:05 +0000
committeryokota <yokota@FreeBSD.org>2000-01-11 13:39:05 +0000
commit9189b4eba0543128aaa8ba8ebfd2103673501b31 (patch)
treea2828f535190abed86812693ac3f7ee95c67f787 /sys/dev/usb
parentf92401f3262171982f23defdf28dcea3985a3cef (diff)
downloadFreeBSD-src-9189b4eba0543128aaa8ba8ebfd2103673501b31.zip
FreeBSD-src-9189b4eba0543128aaa8ba8ebfd2103673501b31.tar.gz
Rework shifta/ctla/alta key handling. It appears that there was
misunderstanding between the PR originator and me. I hope I got it right this time.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ukbd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c
index bc8c094..1bda564 100644
--- a/sys/dev/usb/ukbd.c
+++ b/sys/dev/usb/ukbd.c
@@ -43,6 +43,7 @@
#include "ukbd.h"
#include "opt_kbd.h"
+#include "opt_ukbd.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -875,6 +876,7 @@ ukbd_read(keyboard_t *kbd, int wait)
usbcode = ukbd_getc(state);
if (!KBD_IS_ACTIVE(kbd) || (usbcode == -1))
return -1;
+ ++kbd->kb_count;
#ifdef UKBD_EMULATE_ATSCANCODE
keycode = ukbd_trtab[KEY_INDEX(usbcode)];
if (keycode == NN)
@@ -966,6 +968,7 @@ next_code:
usbcode = ukbd_getc(state);
if (usbcode == -1)
return NOKEY;
+ ++kbd->kb_count;
#ifdef UKBD_EMULATE_ATSCANCODE
/* USB key index -> key code -> AT scan code */
OpenPOWER on IntegriCloud