Created
August 8, 2020 10:17
-
-
Save tsutsui/413402202b0bdc282f99963318ffc8c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /s/cvs/src/sys/dev/wscons/wskbd.c 2019-02-05 19:04:49.000000000 +0900 | |
+++ wskbd.c 2019-04-29 01:07:51.703414289 +0900 | |
@@ -705,6 +705,27 @@ wskbd_input(device_t dev, u_int type, in | |
return; | |
} | |
#endif | |
+#ifdef news68k | |
+#include "romcons.h" | |
+#if NROMCONS > 0 | |
+ if (sc->sc_translating) { | |
+ int num, i; | |
+ keysym_t ks; | |
+ extern bool romcons_is_console; | |
+ extern void romcons_kbdinput(int); | |
+ | |
+ if (romcons_is_console) { | |
+ num = wskbd_translate(sc->id, type, value); | |
+ for (i = 0; i < num; i++) { | |
+ ks = sc->id->t_symbols[i]; | |
+ if (KS_GROUP(ks) == KS_GROUP_Plain && | |
+ KS_VALUE(ks) <= 0x7f); | |
+ romcons_kbdinput(KS_VALUE(ks)); | |
+ } | |
+ } | |
+ } | |
+#endif | |
+#endif | |
wskbd_deliver_event(sc, type, value); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment