From: tmk Date: Thu, 2 Feb 2017 23:55:28 +0000 (+0900) Subject: adb_usb: Use MODS_TAP_KEY action for Power key X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=0575b3db2e825fdf9d77f6cf83f6ecd9626cf59a;p=max%2Ftmk_keyboard.git adb_usb: Use MODS_TAP_KEY action for Power key - MODS_TAP_KEY(MOD_NONE, KC_POWER) allows Power on tap and commands on hold --- diff --git a/converter/adb_usb/binary/adb_usb_rev1_unimap.hex b/converter/adb_usb/binary/adb_usb_rev1_unimap.hex index 44ee8bc7..ecab407f 100644 --- a/converter/adb_usb/binary/adb_usb_rev1_unimap.hex +++ b/converter/adb_usb/binary/adb_usb_rev1_unimap.hex @@ -152,9 +152,9 @@ :1009700045585452414B455920434F4E534F4C45D7 :1009800020434F4D4D414E44204B45594D41505F02 :1009900053454354494F4E20343039360A004255AE -:1009A000494C443A20353330383138622D6469720D -:1009B0007479202831353A35323A3231204A616E25 -:1009C0002031342032303137290A005649443A2048 +:1009A000494C443A20373738646337662D6469729E +:1009B0007479202830383A35323A3334204665622B +:1009C0002020332032303137290A005649443A205A :1009D00030784645454428742E6D2E6B2E292050C4 :1009E00049443A2030783041444228414442206B07 :1009F0006579626F61726420636F6E76657274658B @@ -1278,7 +1278,7 @@ :1068B000580059005A005B005C005D005E005F00FC :1068C0006000610062006300640000005700000087 :1068D000CD440000000000000000000000000000A7 -:1068E0000000000000007300000000000000000035 +:1068E0000000000000006620000000000000000022 :1068F000E000E100E200E300E400E500E600E7007C :106900000100010001000100EA4401000100E2442D :106910000100010001000100460001004A004B0097 diff --git a/converter/adb_usb/binary/adb_usb_rev2_unimap.hex b/converter/adb_usb/binary/adb_usb_rev2_unimap.hex index 6c590865..78fccbbc 100644 --- a/converter/adb_usb/binary/adb_usb_rev2_unimap.hex +++ b/converter/adb_usb/binary/adb_usb_rev2_unimap.hex @@ -148,9 +148,9 @@ :100930002045585452414B455920434F4E534F4C3C :100940004520434F4D4D414E44204B45594D41505C :100950005F53454354494F4E20343039360A0042E4 -:1009600055494C443A20353330383138622D64696A -:10097000727479202831353A35313A3037204A615E -:100980006E2031342032303137290A005649443A3A +:1009600055494C443A20373738646337662D6469FB +:10097000727479202830383A35313A30362046655D +:10098000622020332032303137290A005649443A58 :100990002030784645454428742E6D2E6B2E292034 :1009A0005049443A20307830414442284144422062 :1009B0006B6579626F61726420636F6E76657274C5 @@ -1269,7 +1269,7 @@ :1068B000580059005A005B005C005D005E005F00FC :1068C0006000610062006300640000005700000087 :1068D000CD440000000000000000000000000000A7 -:1068E0000000000000007300000000000000000035 +:1068E0000000000000006620000000000000000022 :1068F000E000E100E200E300E400E500E600E7007C :106900000100010001000100EA4401000100E2442D :106910000100010001000100460001004A004B0097 diff --git a/converter/adb_usb/unimap_plain.c b/converter/adb_usb/unimap_plain.c index 55cef804..3d2b56f3 100644 --- a/converter/adb_usb/unimap_plain.c +++ b/converter/adb_usb/unimap_plain.c @@ -17,8 +17,9 @@ along with this program. If not, see . #include "unimap_common.h" -#define AC_FN0 ACTION_LAYER_TAP_KEY(1, KC_GRV) -#define AC_FN1 ACTION_LAYER_TAP_KEY(1, KC_BSLS) +#define AC_FN0 ACTION_LAYER_TAP_KEY(1, KC_GRV) +#define AC_FN1 ACTION_LAYER_TAP_KEY(1, KC_BSLS) +#define AC_PKEY ACTION_MODS_TAP_KEY(MOD_NONE, KC_POWER) #ifdef KEYMAP_SECTION_ENABLE const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = { @@ -26,7 +27,7 @@ const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (" const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = { #endif UNIMAP( - MPLY,NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, F24, + MPLY,NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, PKEY, ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE, FN0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NO, BSPC, INS, HOME,PGUP, NLCK,PEQL,PSLS,PAST, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, FN1, DEL, END, PGDN, P7, P8, P9, PMNS,