1
0
Fork 0

Simplify submitting my fave cbbrowne keystroke by using SEND_STRING()

This commit is contained in:
Christopher Browne 2016-06-13 17:22:45 -04:00
parent 3fe26d47a6
commit 2fe06e4ef5
2 changed files with 4 additions and 1 deletions

View file

@ -4,3 +4,4 @@
#define randmul 181 #define randmul 181
#define randmod 167 #define randmod 167

View file

@ -3,6 +3,7 @@
#include "backlight.h" #include "backlight.h"
#endif #endif
#include "config_user.h" #include "config_user.h"
#include "quantum.h"
/* Each layer is given a name to aid in readability, which is then /* Each layer is given a name to aid in readability, which is then
used in the keymap matrix below. The underscores do not denote used in the keymap matrix below. The underscores do not denote
@ -131,7 +132,8 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
break; break;
case M_USERNAME: case M_USERNAME:
if (record->event.pressed) { if (record->event.pressed) {
return MACRO( I(1), T(C), T(B), T(B), T(R), T(O), T(W), T(N), T(E)); SEND_STRING("cbbrowne");
return MACRO_NONE ;
} else { } else {
return MACRO_NONE ; return MACRO_NONE ;
} }