From 3b7bf1f6e05c63736948a253d805ceaf801546ac Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 3 Feb 2020 11:58:01 +0900 Subject: [PATCH] usb_usb: Fix unimap translation for Power --- converter/usb_usb/unimap_trans.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/converter/usb_usb/unimap_trans.h b/converter/usb_usb/unimap_trans.h index 5bad1b44..9ab97b99 100644 --- a/converter/usb_usb/unimap_trans.h +++ b/converter/usb_usb/unimap_trans.h @@ -55,7 +55,7 @@ const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = { UNIMAP_PAUSE, UNIMAP_INSERT, UNIMAP_HOME, UNIMAP_PGUP, UNIMAP_DELETE, UNIMAP_END, UNIMAP_PGDOWN, UNIMAP_RIGHT }, /* 48-4F */ { UNIMAP_LEFT, UNIMAP_DOWN, UNIMAP_UP, UNIMAP_NUMLOCK, UNIMAP_KP_SLASH, UNIMAP_KP_ASTERISK, UNIMAP_KP_MINUS,UNIMAP_KP_PLUS, /* 50-57 */ UNIMAP_KP_ENTER, UNIMAP_KP_1, UNIMAP_KP_2, UNIMAP_KP_3, UNIMAP_KP_4, UNIMAP_KP_5, UNIMAP_KP_6, UNIMAP_KP_7 }, /* 58-5F */ - { UNIMAP_KP_8, UNIMAP_KP_9, UNIMAP_KP_0, UNIMAP_KP_DOT, UNIMAP_NONUS_BSLASH,UNIMAP_APPLICATION, UNIMAP_KP_COMMA,UNIMAP_KP_EQUAL, /* 60-67 */ + { UNIMAP_KP_8, UNIMAP_KP_9, UNIMAP_KP_0, UNIMAP_KP_DOT, UNIMAP_NONUS_BSLASH,UNIMAP_APPLICATION, UNIMAP_F24, UNIMAP_KP_EQUAL, /* 60-67 */ UNIMAP_F13, UNIMAP_F14, UNIMAP_F15, UNIMAP_F16, UNIMAP_F17, UNIMAP_F18, UNIMAP_F19, UNIMAP_F20 }, /* 68-6F */ { UNIMAP_F21, UNIMAP_F22, UNIMAP_F23, UNIMAP_F24, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, /* 70-77 */ UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_MUTE }, /* 78-7F */ @@ -77,4 +77,13 @@ const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = { UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO, UNIMAP_NO }, /* F8-FF */ }; +/* Exceptional translation: + * + * HID Keyboard usage Unimap code Note + * ------------------------------------------------------------------------------- + * 0x66 Power UNIMAP_F24 + * 0x80 LANG1 UNIMAP_HENK Korean Hangul/English + * 0x81 LANG2 UNIMAP_MHEN Korean Hanja conversion + */ + #endif -- 2.46.2