keychron_qmk_firmware/keyboards/pimentoso/touhoupad/keymaps/default/keymap.c
James Young 0c6155ec42
Pimentoso TouhouPad Layout Macro refactor (#14010)
* physically arrange layout macro, phase 1

Break the keymap up into rows.

* physically arrange layout macro, phase 2

Moves the Escape and Enter keys to the top row.

* refactor default keymap

- use QMK short-form keycodes
- grid align keycodes

* physically arrange layout macro, phase 3

Moves the X key (Bomb) to the bottom row.

* physically arrange layout macro, phase 4

Physically arrange the Escape and Enter keys.

* physically arrange layout macro, phase 5

Physically arrange the arrow keys.

* physically arrange layout macro, phase 6

Physically align the X (Bomb) key.

* align escape characters in layout macro

* info.json: apply human-friendly formatting
2021-08-16 03:17:25 -07:00

34 lines
1.4 KiB
C

/* Copyright 2021 Michele Ferri <zomgsako@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT( /* Base */
LT(1,KC_ESC), KC_ENT,
KC_LSFT, KC_Z, KC_C,
KC_UP,
KC_LEFT, KC_DOWN, KC_RGHT,
KC_X
),
LAYOUT( /* RGB controls */
KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO,
RGB_VAI,
RGB_TOG, RGB_VAD, RGB_MOD,
KC_NO
)
};