On Fri, 13 May 2022 13:19:07 +0200 Rhialto <rhia...@falu.nl> wrote: > On Thu 12 May 2022 at 22:54:44 -0400, Michael wrote: > > Emmanuel Dreyfus <m...@netbsd.org> 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 change it, but here again, input from > > > someone that has access to that keyboard would help. > > > > It's there because hidkbdmap.c has > > KC(50), KS_backslash, KS_bar, > > Could that have something to do with UK layout?
It's from Static const keysym_t hidkbd_keydesc_us[] = { > The key near ENTER (but not as described between enter and backspace) > is #/~. See e.g. > https://en.wikipedia.org/wiki/British_and_American_keyboards The only UK keyboard I have here ( a 1993 IBM model M... ) has a backslash / pipe key between left shift and z. When I wrote adb_usb_map.c I just tried to get something that would produce (as close as possible to) the same keys when translated again through the USB map as the ADB map. Since all my ADB keyboard are US variants a good bit of it is untested, at least by me. have fun Michael