Lines Matching defs:keycode
131 uint8_t keycode[UKBD_NKEYCODE];
384 j |= sc->sc_odata.keycode[i];
511 if (sc->sc_ndata.keycode[0] == KEY_ERROR)
528 key = sc->sc_odata.keycode[i];
533 if (sc->sc_ndata.keycode[j] == 0) {
536 if (key == sc->sc_ndata.keycode[j]) {
546 key = sc->sc_ndata.keycode[i];
552 if (sc->sc_odata.keycode[j] == 0) {
555 if (key == sc->sc_odata.keycode[j]) {
639 ukbd_apple_fn(uint8_t keycode) {
640 switch (keycode) {
647 default: return keycode;
652 ukbd_apple_swap(uint8_t keycode) {
653 switch (keycode) {
656 default: return keycode;
789 sc->sc_ndata.keycode[i] =
798 if (sc->sc_ndata.keycode[i]) {
800 (int)i, (int)sc->sc_ndata.keycode[i]);
806 sc->sc_ndata.keycode[i] =
807 ukbd_apple_fn(sc->sc_ndata.keycode[i]);
813 sc->sc_ndata.keycode[i] =
814 ukbd_apple_swap(sc->sc_ndata.keycode[i]);
1519 uint32_t keycode;
1550 keycode = ukbd_trtab[KEY_INDEX(usbcode)];
1551 if (keycode == NN) {
1554 return (ukbd_key2scan(sc, keycode, sc->sc_ndata.modifiers,
1567 uint32_t keycode;
1621 keycode = ukbd_trtab[KEY_INDEX(usbcode)];
1622 if (keycode == NN) {
1627 return (ukbd_key2scan(sc, keycode, sc->sc_ndata.modifiers,
1637 keycode = ukbd_trtab[KEY_INDEX(usbcode)];
1638 if (keycode == NN) {
1643 switch (keycode) {
1663 keycode = 0x54; /* sysrq */
1668 keycode = 0x6c; /* break */
1675 keycode |= SCAN_RELEASE;
1678 return (keycode);
1682 switch (keycode) {
1688 sc->sc_composed_char += keycode - 0x40;
1695 sc->sc_composed_char += keycode - 0x47;
1702 sc->sc_composed_char += keycode - 0x4E;
1734 /* keycode to key action */
1735 action = genkbd_keyaction(kbd, SCAN_CHAR(keycode),
1736 (keycode & SCAN_RELEASE),
1756 uint32_t keycode;
1759 keycode = ukbd_read_char_locked(kbd, wait);
1762 return (keycode);