tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: two keys with same keycode on ADB



On Tue, May 10, 2022 at 12:43:50AM +0000, Emmanuel Dreyfus wrote:
> Reading tmk_keyboard, it seems there is also a JIS layout. It seems
> I will have to add a third emulation map.

I have trouvle to find the scan codes for that one. 

There is a good overview of ANSI vs ISO vs JIS here:
 https://github.com/tmk/tmk_keyboard/blob/master/converter/adb_usb/matrix.c

   Summary:
     ADB scan code        USB usage
     ANSI   ISO    JIS    ANSI        ISO         JIS
     0x32   0x0a   0x32   GRAVE/0x35  GRAVE/0x35  GRAVE/0x35
     ----   0x32   ----   ----        NUBS/0x64   ----
     0x2a   0x70   0x2a   BSLS/0x31   NUHS/0x31   NUHS/0x31
     ----   ----   0x5d   ----        ----        JPY
     ----   ----   0x5e   ----        ----        RO
   
I figured out the following USB scan codes:
KC_GRAVE 0x35
KC_NUBS aka KC_NONUS_BACKSLASH 0x64
KC_NUHS aka KC_NONUS_HASH 0x31
KC_BSLS aka KC_BACKSLASH 0x31 (same as NUHS?)

I miss KC_JPY and KC_RO. Internet seems to know nothing about them.



-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index