Re: [PATCH] ISO abd JIS for ADB (Was: two keys with same keycode on ADB)

2022-05-12 Thread Michael
Hello, On Fri, 13 May 2022 01:26:34 + Emmanuel Dreyfus wrote: > I am also a bit puzzled that in our historical code, ANSI ADB > scancode 42, which is supposed to be backslash (the key is between > backspace and return), is converted into USB scancode 50, which > is non US hash. I did not

[PATCH] ISO abd JIS for ADB (Was: two keys with same keycode on ADB)

2022-05-12 Thread Emmanuel Dreyfus
Here is my proposed patch to proprely handle ISO and JIS keyboard layouts for ADB. Wee change sysctl machdep.adbkbdX.emulate_usb from boolean to int: 0: no emulation (like with false previously) 1: ANSI emulation (like with true previously) 2: ISO emulation 3: JIS emulation The value is

Re: two keys with same keycode on ADB

2022-05-12 Thread Michael van Elst
m...@netbsd.org (Emmanuel Dreyfus) writes: >On Thu, May 12, 2022 at 07:26:58AM +0200, Michael van Elst wrote: >> This seems to suggest that we have special codes on the JIS keyboard >> for: >> >> Yen 0x5d (KC_JPY ?) >> Ro0x5e (KC_RO ?) >> Eisu 0x66 (Switch to Roman) >> Kana 0x68