keymap.c 449 B

12345678910111213141516171819
  1. #include QMK_KEYBOARD_H
  2. #include <stdio.h>
  3. // extern keymap_config_t keymap_config;
  4. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { { { KC_TRNS } } };
  5. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  6. static char buf[10] = " ";
  7. if (record->event.pressed) {
  8. snprintf(buf, 10, "C%dR%d ", record->event.key.col, record->event.key.row);
  9. send_string(buf);
  10. }
  11. return false;
  12. return true;
  13. }