Last active
June 10, 2016 16:08
-
-
Save ReSTARTR/9a7b4b1f245656029e3a149cc024715f to your computer and use it in GitHub Desktop.
konami command with ergodox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum { | |
KONAMI = 1, | |
}; | |
[BASE] = KEYMAP( | |
M(KONAMI), // 好きなレイヤーのポジションに設定 | |
); | |
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |
{ | |
switch(id) { | |
// ↑↑↓↓← → ← → B A | |
case KONAMI: | |
return MACRODOWN( T(UP), T(UP), T(DOWN), T(DOWN), T(LEFT), T(RIGHT), T(LEFT), T(RIGHT), T(B), T(A), END ); | |
break; | |
} | |
return MACRO_NONE; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment