1
0

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
This commit is contained in:
tmk 2017-02-03 08:55:28 +09:00
parent 300628e5dc
commit 0575b3db2e
3 changed files with 12 additions and 11 deletions

View File

@ -152,9 +152,9 @@
:1009700045585452414B455920434F4E534F4C45D7 :1009700045585452414B455920434F4E534F4C45D7
:1009800020434F4D4D414E44204B45594D41505F02 :1009800020434F4D4D414E44204B45594D41505F02
:1009900053454354494F4E20343039360A004255AE :1009900053454354494F4E20343039360A004255AE
:1009A000494C443A20353330383138622D6469720D :1009A000494C443A20373738646337662D6469729E
:1009B0007479202831353A35323A3231204A616E25 :1009B0007479202830383A35323A3334204665622B
:1009C0002031342032303137290A005649443A2048 :1009C0002020332032303137290A005649443A205A
:1009D00030784645454428742E6D2E6B2E292050C4 :1009D00030784645454428742E6D2E6B2E292050C4
:1009E00049443A2030783041444228414442206B07 :1009E00049443A2030783041444228414442206B07
:1009F0006579626F61726420636F6E76657274658B :1009F0006579626F61726420636F6E76657274658B
@ -1278,7 +1278,7 @@
:1068B000580059005A005B005C005D005E005F00FC :1068B000580059005A005B005C005D005E005F00FC
:1068C0006000610062006300640000005700000087 :1068C0006000610062006300640000005700000087
:1068D000CD440000000000000000000000000000A7 :1068D000CD440000000000000000000000000000A7
:1068E0000000000000007300000000000000000035 :1068E0000000000000006620000000000000000022
:1068F000E000E100E200E300E400E500E600E7007C :1068F000E000E100E200E300E400E500E600E7007C
:106900000100010001000100EA4401000100E2442D :106900000100010001000100EA4401000100E2442D
:106910000100010001000100460001004A004B0097 :106910000100010001000100460001004A004B0097

View File

@ -148,9 +148,9 @@
:100930002045585452414B455920434F4E534F4C3C :100930002045585452414B455920434F4E534F4C3C
:100940004520434F4D4D414E44204B45594D41505C :100940004520434F4D4D414E44204B45594D41505C
:100950005F53454354494F4E20343039360A0042E4 :100950005F53454354494F4E20343039360A0042E4
:1009600055494C443A20353330383138622D64696A :1009600055494C443A20373738646337662D6469FB
:10097000727479202831353A35313A3037204A615E :10097000727479202830383A35313A30362046655D
:100980006E2031342032303137290A005649443A3A :10098000622020332032303137290A005649443A58
:100990002030784645454428742E6D2E6B2E292034 :100990002030784645454428742E6D2E6B2E292034
:1009A0005049443A20307830414442284144422062 :1009A0005049443A20307830414442284144422062
:1009B0006B6579626F61726420636F6E76657274C5 :1009B0006B6579626F61726420636F6E76657274C5
@ -1269,7 +1269,7 @@
:1068B000580059005A005B005C005D005E005F00FC :1068B000580059005A005B005C005D005E005F00FC
:1068C0006000610062006300640000005700000087 :1068C0006000610062006300640000005700000087
:1068D000CD440000000000000000000000000000A7 :1068D000CD440000000000000000000000000000A7
:1068E0000000000000007300000000000000000035 :1068E0000000000000006620000000000000000022
:1068F000E000E100E200E300E400E500E600E7007C :1068F000E000E100E200E300E400E500E600E7007C
:106900000100010001000100EA4401000100E2442D :106900000100010001000100EA4401000100E2442D
:106910000100010001000100460001004A004B0097 :106910000100010001000100460001004A004B0097

View File

@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define AC_FN0 ACTION_LAYER_TAP_KEY(1, KC_GRV) #define AC_FN0 ACTION_LAYER_TAP_KEY(1, KC_GRV)
#define AC_FN1 ACTION_LAYER_TAP_KEY(1, KC_BSLS) #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 #ifdef KEYMAP_SECTION_ENABLE
const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = { 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 = { const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = {
#endif #endif
UNIMAP( 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, 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, 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, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, FN1, DEL, END, PGDN, P7, P8, P9, PMNS,