Skip to content

Instantly share code, notes, and snippets.

@ReSTARTR
Last active June 10, 2016 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReSTARTR/9a7b4b1f245656029e3a149cc024715f to your computer and use it in GitHub Desktop.
Save ReSTARTR/9a7b4b1f245656029e3a149cc024715f to your computer and use it in GitHub Desktop.
konami command with ergodox
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