aboutsummaryrefslogtreecommitdiff
path: root/keyboard/cluepad/cluepad.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/cluepad/cluepad.h')
-rw-r--r--keyboard/cluepad/cluepad.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/keyboard/cluepad/cluepad.h b/keyboard/cluepad/cluepad.h
new file mode 100644
index 000000000..0d10d50b8
--- /dev/null
+++ b/keyboard/cluepad/cluepad.h
@@ -0,0 +1,41 @@
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
38void * matrix_init_user(void);
39void * matrix_scan_user(void);
40
41#endif