aboutsummaryrefslogtreecommitdiff
path: root/keyboards/cospad/cospad.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/cospad/cospad.h')
-rw-r--r--keyboards/cospad/cospad.h36
1 files changed, 34 insertions, 2 deletions
diff --git a/keyboards/cospad/cospad.h b/keyboards/cospad/cospad.h
index 36c7f3367..df42b0df1 100644
--- a/keyboards/cospad/cospad.h
+++ b/keyboards/cospad/cospad.h
@@ -22,6 +22,21 @@
22 * `-------------------' 22 * `-------------------'
23 */ 23 */
24 24
25/* COSPAD gamepad matrix layout
26 * ,-------------------.
27 * | 00 | 01 | 02 | 03 |
28 * |----|----|----|----|
29 * | 10 | 11 | 12 | 13 |
30 * |----|----|----|----|
31 * | 20 | 21 | 22 | |
32 * |----|----|----| 23 |
33 * | 30 | 31 | 32 | |
34 * |----|----|----|----|
35 * | 40 | 41 | 42 | 43 |
36 * |----|----|----|----|
37 * | 50 | 51 | 52 | 53 |
38 * `-------------------'
39 */
25 40
26/* COSPAD numpad matrix layout 41/* COSPAD numpad matrix layout
27 * ,-------------------. 42 * ,-------------------.
@@ -41,7 +56,7 @@
41// The first section contains all of the arguments 56// The first section contains all of the arguments
42// The second converts the arguments into a two-dimensional array 57// The second converts the arguments into a two-dimensional array
43#define LAYOUT_ortho_6x4( \ 58#define LAYOUT_ortho_6x4( \
44 k00, k01, k02, k03, \ 59 k00, k01, k02, k03, \
45 k10, k11, k12, k13, \ 60 k10, k11, k12, k13, \
46 k20, k21, k22, k23, \ 61 k20, k21, k22, k23, \
47 k30, k31, k32, k33, \ 62 k30, k31, k32, k33, \
@@ -57,8 +72,25 @@
57 {k50, k51, k52, k53} \ 72 {k50, k51, k52, k53} \
58} 73}
59 74
75#define LAYOUT_gamepad_6x4( \
76 k00, k01, k02, k03, \
77 k10, k11, k12, k13, \
78 k20, k21, k22, \
79 k30, k31, k32, k23, \
80 k40, k41, k42, k43, \
81 k50, k51, k52, k53 \
82) \
83{ \
84 {k00, k01, k02, k03}, \
85 {k10, k11, k12, k13}, \
86 {k20, k21, k22, k23}, \
87 {k30, k31, k32, KC_NO}, \
88 {k40, k41, k42, k43}, \
89 {k50, k51, k52, k53} \
90}
91
60#define LAYOUT_numpad_6x4( \ 92#define LAYOUT_numpad_6x4( \
61 k00, k01, k02, k03, \ 93 k00, k01, k02, k03, \
62 k10, k11, k12, k13, \ 94 k10, k11, k12, k13, \
63 k20, k21, k22, \ 95 k20, k21, k22, \
64 k30, k31, k32, k23, \ 96 k30, k31, k32, k23, \