summaryrefslogtreecommitdiff
path: root/keyboards/lfkeyboards/lfkpad/lfkpad.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/lfkeyboards/lfkpad/lfkpad.h')
-rw-r--r--keyboards/lfkeyboards/lfkpad/lfkpad.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/keyboards/lfkeyboards/lfkpad/lfkpad.h b/keyboards/lfkeyboards/lfkpad/lfkpad.h
index b82581b939..a4c248e2a0 100644
--- a/keyboards/lfkeyboards/lfkpad/lfkpad.h
+++ b/keyboards/lfkeyboards/lfkpad/lfkpad.h
@@ -54,20 +54,24 @@ enum action_functions {
void reset_keyboard_kb(void);
void click(uint16_t freq, uint16_t duration);
-#define LAYOUT( \
- k00, k01, k02, k03,\
- k10, k11, k12, k13,\
- k20, k21, k22, k23,\
- k30, k31, k32,\
- k40, k41, k42, k43,\
- k50, k52\
+// readability
+#define ___ KC_NO
+
+
+#define LAYOUT_numpad_6x4( \
+ k00, k01, k02, k03, \
+ k10, k11, k12, k13, \
+ k20, k21, k22, \
+ k30, k31, k32, k23, \
+ k40, k41, k42, \
+ k50, k52, k43 \
) { \
- { k00, k01, k02, k03 }, \
- { k10, k11, k12, k13 }, \
- { k20, k21, k22, k23 }, \
- { k30, k31, k32, KC_NO }, \
- { k40, k41, k42, k43 }, \
- { k50, KC_NO, k52, KC_NO } \
+ { k00, k01, k02, k03 }, \
+ { k10, k11, k12, k13 }, \
+ { k20, k21, k22, k23 }, \
+ { k30, k31, k32, ___ }, \
+ { k40, k41, k42, k43 }, \
+ { k50, ___, k52, ___ } \
}
#endif //LFKPAD_H