keymap.c (2220B)
1 /* Copyright 2026 Vineet K 2 * Copyright 2023 Colin Lam (Ploopy Corporation) 3 * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> 4 * Copyright 2019 Sunjun Kim 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 #include QMK_KEYBOARD_H 20 21 /* 22 * same as default but flipped for left-handed usage. 23 * but the ordering of the keys looks weird 24 * like it's indexed 401253 when looked clockwise from bottom left 25 * 26 * the default keymap looks like this: 27 * +-----+---++---+-----+ 28 * | | || | | 29 * | | 5 || S | | 30 * | 4 | || | 3 | 31 * | +---++---+ | 32 * | | | | 33 * +-----+ +-----+ 34 * | | | | 35 * | | | | 36 * | 1 +--------+ 2 | 37 * | | | | 38 * | | logo | | 39 * +-----+--------+-----+ 40 * and in the keymap below is said as 45S213 41 * but to flip it horizontally, it becomes 3S4125 (which looks very different) 42 * +-----+---++---+-----+ 43 * | | || | | 44 * | | S || 4 | | 45 * | 3 | || | 5 | 46 * | +---++---+ | 47 * | | | | 48 * +-----+ +-----+ 49 * | | | | 50 * | | | | 51 * | 2 +--------+ 1 | 52 * | | | | 53 * | | logo | | 54 * +-----+--------+-----+ 55 */ 56 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 57 // [0] = LAYOUT( MS_BTN4, MS_BTN5, DRAG_SCROLL, MS_BTN2, MS_BTN1, MS_BTN3 ) 58 [0] = LAYOUT( MS_BTN2, DRAG_SCROLL, MS_BTN4, MS_BTN5, MS_BTN3, MS_BTN1 ) 59 };