diff options
Diffstat (limited to 'keyboards/hadron/ver3/keymaps/default/keymap.c')
| -rw-r--r-- | keyboards/hadron/ver3/keymaps/default/keymap.c | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/keyboards/hadron/ver3/keymaps/default/keymap.c b/keyboards/hadron/ver3/keymaps/default/keymap.c index 9afddba26..749c385c8 100644 --- a/keyboards/hadron/ver3/keymaps/default/keymap.c +++ b/keyboards/hadron/ver3/keymaps/default/keymap.c | |||
| @@ -27,10 +27,7 @@ enum preonic_keycodes { | |||
| 27 | RGBLED_DECREASE_SAT, | 27 | RGBLED_DECREASE_SAT, |
| 28 | RGBLED_INCREASE_VAL, | 28 | RGBLED_INCREASE_VAL, |
| 29 | RGBLED_DECREASE_VAL, | 29 | RGBLED_DECREASE_VAL, |
| 30 | }; | 30 | DEMOMACRO |
| 31 | |||
| 32 | enum macro_keycodes { | ||
| 33 | KC_DEMOMACRO, | ||
| 34 | }; | 31 | }; |
| 35 | 32 | ||
| 36 | // Custom macros | 33 | // Custom macros |
| @@ -41,8 +38,6 @@ enum macro_keycodes { | |||
| 41 | // Requires KC_TRNS/_______ for the trigger key in the destination layer | 38 | // Requires KC_TRNS/_______ for the trigger key in the destination layer |
| 42 | #define LT_MC(kc) LT(_MOUSECURSOR, kc) // L-ayer T-ap M-ouse C-ursor | 39 | #define LT_MC(kc) LT(_MOUSECURSOR, kc) // L-ayer T-ap M-ouse C-ursor |
| 43 | #define LT_RAI(kc) LT(_RAISE, kc) // L-ayer T-ap to Raise | 40 | #define LT_RAI(kc) LT(_RAISE, kc) // L-ayer T-ap to Raise |
| 44 | #define DEMOMACRO M(KC_DEMOMACRO) // Sample for macros | ||
| 45 | |||
| 46 | 41 | ||
| 47 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 42 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 48 | 43 | ||
| @@ -248,6 +243,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 248 | } | 243 | } |
| 249 | return false; | 244 | return false; |
| 250 | break; | 245 | break; |
| 246 | case DEMOMACRO: | ||
| 247 | if (record->event.pressed) { | ||
| 248 | SEND_STRING("hello world"); | ||
| 249 | } | ||
| 251 | } | 250 | } |
| 252 | return true; | 251 | return true; |
| 253 | } | 252 | } |
| @@ -262,27 +261,6 @@ bool music_mask_user(uint16_t keycode) { | |||
| 262 | } | 261 | } |
| 263 | } | 262 | } |
| 264 | 263 | ||
| 265 | |||
| 266 | /* | ||
| 267 | * Macro definition | ||
| 268 | */ | ||
| 269 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 270 | { | ||
| 271 | if (!eeconfig_is_enabled()) { | ||
| 272 | eeconfig_init(); | ||
| 273 | } | ||
| 274 | |||
| 275 | switch (id) { | ||
| 276 | case KC_DEMOMACRO: | ||
| 277 | if (record->event.pressed){ | ||
| 278 | return MACRO (I(1), T(H),T(E),T(L), T(L), T(O), T(SPACE), T(W), T(O), T(R), T(L), T(D), END); | ||
| 279 | } | ||
| 280 | } | ||
| 281 | |||
| 282 | return MACRO_NONE; | ||
| 283 | } | ||
| 284 | |||
| 285 | |||
| 286 | void matrix_init_user(void) { | 264 | void matrix_init_user(void) { |
| 287 | } | 265 | } |
| 288 | 266 | ||
