]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboard/cluepad/cluepad.h
Fixup the cluepad code
[qmk_firmware.git] / keyboard / cluepad / cluepad.h
1 #ifndef CLUEPAD_H
2 #define CLUEPAD_H
3
4 #include "matrix.h"
5 #include "keymap_common.h"
6 #include <stddef.h>
7
8
9 /* Cluepad matrix layout
10  * .-------------------.
11  * |NLCK|   /|   *|   -|
12  * |-------------------|
13  * |   7|   8|   9|    |
14  * |--------------|    |
15  * |   4|   5|   6|   +|
16  * |-------------------|
17  * |   1|   2|   3|    |
18  * |--------------|    |
19  * |        0|   .| Ent|
20  * '-------------------'
21  */
22 // The first section contains all of the arguments
23 // The second converts the arguments into a two-dimensional array
24 #define KEYMAP( \
25     k00, k01, k02, k03, \
26     k10, k11, k12, k13, \
27     k20, k21, k22, \
28     k30, k31, k32, k33, \
29     k40,      k42 \
30 ) { \
31     { k00, k01, k02, k03, }, \
32     { k10, k11, k12, k13, }, \
33     { k20, k21, k22, KC_NO, }, \
34     { k30, k31, k32, k33, }, \
35     { k40, KC_NO, k42, KC_NO } \
36 }
37
38 void matrix_init_user(void);
39 void matrix_scan_user(void);
40
41 #endif