mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
ukbd(4): Do not serialize evdev key events
Unlike AT keyboards, HID devices are able to send all pc105 key states within a single report. Let evdev to transmit all key state changes within a single report too. Reviewed by: hselasky Obtained from: sysutils/iichid MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D27749
This commit is contained in:
parent
a1d7836752
commit
769935a4ed
1 changed files with 6 additions and 3 deletions
|
|
@ -389,11 +389,9 @@ ukbd_put_key(struct ukbd_softc *sc, uint32_t key)
|
|||
(key & KEY_RELEASE) ? "released" : "pressed");
|
||||
|
||||
#ifdef EVDEV_SUPPORT
|
||||
if (evdev_rcpt_mask & EVDEV_RCPT_HW_KBD && sc->sc_evdev != NULL) {
|
||||
if (evdev_rcpt_mask & EVDEV_RCPT_HW_KBD && sc->sc_evdev != NULL)
|
||||
evdev_push_event(sc->sc_evdev, EV_KEY,
|
||||
evdev_hid2key(KEY_INDEX(key)), !(key & KEY_RELEASE));
|
||||
evdev_sync(sc->sc_evdev);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (sc->sc_inputs < UKBD_IN_BUF_SIZE) {
|
||||
|
|
@ -559,6 +557,11 @@ ukbd_interrupt(struct ukbd_softc *sc)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef EVDEV_SUPPORT
|
||||
if (evdev_rcpt_mask & EVDEV_RCPT_HW_KBD && sc->sc_evdev != NULL)
|
||||
evdev_sync(sc->sc_evdev);
|
||||
#endif
|
||||
|
||||
/* wakeup keyboard system */
|
||||
ukbd_event_keyinput(sc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue