Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case QWERTY:
- if (record->event.pressed) {
- case MACRO_500MILES:
- if (record->event.pressed)
- {
- SEND_STRING("I WOULD WALK 500 MILES AND I WOULD WALK 500 MORE");
- }
- return false;
- break;
- }
- return true;
- }
- // @@@@@@@@@@@@@@@@@@@@@ new version below
- bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case QWERTY: // when you hit your "QWERTY" key, look at this case
- if (record->event.pressed) { // this line basically checks if you press the key
- do whatever
- }
- return false;
- break;
- case MACRO_500MILES: // when you hit your macro key, look at this case
- if (record->event.pressed)
- {
- SEND_STRING("I WOULD WALK 500 MILES AND I WOULD WALK 500 MORE");
- }
- return false;
- break;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment