aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/chocopad/chocopad.h
blob: 329e2d56f672d64673b95e973f3d0e680d22f8bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CHOCOPAD_H
#define CHOCOPAD_H

#include "quantum.h"

#define KEYMAP( \
    A1, A2, A3, A4, \
    B1, B2, B3, B4, \
    C1, C2, C3, C4, \
    D1, D2, D3, D4 \
) { \
    { A1, A2, A3, A4 }, \
    { B1, B2, B3, B4 }, \
    { C1, C2, C3, C4 }, \
    { D1, D2, D3, D4 } \
}

// Used to create a keymap using only KC_ prefixed keys
#define KC_KEYMAP( \
    A1, A2, A3, A4, \
    B1, B2, B3, B4, \
    C1, C2, C3, C4, \
    D1, D2, D3, D4 \
) \
    KEYMAP( \
        KC_##A1, KC_##A2, KC_##A3, KC_##A4, \
        KC_##B1, KC_##B2, KC_##B3, KC_##B4, \
        KC_##C1, KC_##C2, KC_##C3, KC_##C4, \
        KC_##D1, KC_##D2, KC_##D3, KC_##D4 \
    )

#endif