Searqq

Untitled

Nov 5th, 2017
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  2. switch (keycode) {
  3. case QWERTY:
  4. if (record->event.pressed) {
  5. case MACRO_500MILES:
  6. if (record->event.pressed)
  7. {
  8. SEND_STRING("I WOULD WALK 500 MILES AND I WOULD WALK 500 MORE");
  9. }
  10. return false;
  11. break;
  12.  
  13. }
  14. return true;
  15. }
  16. // @@@@@@@@@@@@@@@@@@@@@ new version below
  17.  
  18. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  19. switch (keycode) {
  20. case QWERTY: // when you hit your "QWERTY" key, look at this case
  21. if (record->event.pressed) { // this line basically checks if you press the key
  22. do whatever
  23. }
  24. return false;
  25. break;
  26. case MACRO_500MILES: // when you hit your macro key, look at this case
  27. if (record->event.pressed)
  28. {
  29. SEND_STRING("I WOULD WALK 500 MILES AND I WOULD WALK 500 MORE");
  30. }
  31. return false;
  32. break;
  33.  
  34. }
  35. return true;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment