2023-11-09 17:52:47 +00:00
|
|
|
// Copyright 2023 John Barbero Unenge (@jbarberu)
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
|
|
|
|
enum Layer {
|
|
|
|
L_Numpad = 0,
|
|
|
|
L_Symbols,
|
|
|
|
L_RGB
|
|
|
|
};
|
|
|
|
|
|
|
|
// clang-format off
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/*
|
|
|
|
* Macropad Button Order
|
|
|
|
* ┌───┬───┬───┬───┐
|
|
|
|
* │ 7 │ 8 │ 9 │ - │
|
|
|
|
* ├───┼───┼───┼───┤
|
|
|
|
* │ 4 │ 5 │ 6 │ + │
|
|
|
|
* ├───┼───┼───┼───┤
|
|
|
|
* │ 1 │ 2 │ 3 │ 0 │
|
|
|
|
* └───┴───┴───┴───┘
|
|
|
|
*
|
|
|
|
* SNES Button Order
|
|
|
|
* ┌────────┬────────┬────────┬────────┐
|
|
|
|
* │ LT │ RT │ START │ SELECT │
|
|
|
|
* ├────────┼────────┼────────┼────────┤
|
|
|
|
* │ UP │ DOWN │ LEFT │ RIGHT │
|
|
|
|
* ├────────┼────────┼────────┼────────┤
|
|
|
|
* │ A │ B │ X │ Y │
|
|
|
|
* └────────┴────────┴────────┴────────┘
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
[L_Numpad] = LAYOUT(
|
|
|
|
KC_1, KC_2, KC_3, KC_4
|
|
|
|
, KC_5, KC_6, KC_7, KC_8
|
|
|
|
, KC_9, KC_0, KC_A, KC_S
|
|
|
|
|
|
|
|
, KC_A, KC_S, KC_ENT, KC_BSPC
|
|
|
|
, KC_UP, KC_DOWN, KC_LEFT, KC_RIGHT
|
|
|
|
, KC_X, KC_Z, LSFT(KC_F1),KC_TAB
|
|
|
|
),
|
|
|
|
[L_RGB] = LAYOUT(
|
2024-08-25 12:15:07 +00:00
|
|
|
RGB_M_P, RGB_M_B, UG_TOGG, KC_NO
|
|
|
|
, UG_NEXT, UG_HUEU, UG_VALU, TO(L_Numpad)
|
|
|
|
, UG_PREV, UG_HUED, UG_VALD, KC_NO
|
2023-11-09 17:52:47 +00:00
|
|
|
|
|
|
|
, KC_A, KC_B, KC_C, KC_D
|
|
|
|
, KC_E, KC_F, KC_G, KC_H
|
|
|
|
, KC_I, KC_J, KC_K, KC_L
|
|
|
|
),
|
|
|
|
[L_Symbols] = LAYOUT(
|
|
|
|
KC_PPLS, KC_PMNS, KC_PEQL, KC_NO
|
|
|
|
, KC_PAST, KC_PSLS, KC_ENT, KC_TRNS
|
|
|
|
, KC_NUM, KC_NO, KC_NO, QK_BOOT
|
|
|
|
|
|
|
|
, KC_A, KC_B, KC_C, KC_D
|
|
|
|
, KC_E, KC_F, KC_G, KC_H
|
|
|
|
, KC_I, KC_J, KC_K, KC_L
|
|
|
|
)
|
|
|
|
};
|
|
|
|
// clang-format on
|
|
|
|
|
2023-11-12 05:30:31 +00:00
|
|
|
const char * get_layer_name_user(uint8_t layer) {
|
2023-11-09 17:52:47 +00:00
|
|
|
switch (layer) {
|
|
|
|
case L_Numpad:
|
|
|
|
return "Numpad";
|
|
|
|
case L_RGB:
|
|
|
|
return "RGB Controls";
|
|
|
|
case L_Symbols:
|
|
|
|
return "Symbols";
|
|
|
|
default:
|
|
|
|
return "Undef";
|
|
|
|
}
|
|
|
|
}
|