logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

keymap.c (629B)


  1. // Copyright 2024 Dasky (@daskygit)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include QMK_KEYBOARD_H
  4. // clang-format off
  5. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  6. // Left, Middle, Right,
  7. // Forward
  8. // Back
  9. // Underneath
  10. [0] = LAYOUT(
  11. MS_BTN1, MS_BTN3, MS_BTN2,
  12. MS_BTN5,
  13. MS_BTN4,
  14. QK_BOOT
  15. )
  16. };
  17. // clang-format on
  18. void pointing_device_init_kb(void) {
  19. pointing_device_set_cpi(1600);
  20. }
  21. #if defined(ENCODER_MAP_ENABLE)
  22. const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
  23. [0] = {ENCODER_CCW_CW(MS_WHLU, MS_WHLD)},
  24. };
  25. #endif