summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
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/usb
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/usb')
-rw-r--r--sys/dev/usb/ukbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c
index b127b8a..4e531bf 100644
--- a/sys/dev/usb/ukbd.c
+++ b/sys/dev/usb/ukbd.c
@@ -66,6 +66,7 @@
#include <dev/usb/usb_quirks.h>
#include <dev/usb/hid.h>
+#include <sys/kbio.h>
#include <dev/kbd/kbdreg.h>
#define UKBD_EMULATE_ATSCANCODE 1
@@ -231,7 +232,6 @@ ukbd_intr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status)
DRIVER_MODULE(ukbd, uhub, ukbd_driver, ukbd_devclass, ukbd_driver_load, 0);
#include <machine/limits.h>
-#include <sys/kbio.h>
#define UKBD_DEFAULT 0
OpenPOWER on IntegriCloud