qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

keymap.c (631B)


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