diff options
Diffstat (limited to 'planck/keymap.c')
-rw-r--r-- | planck/keymap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/planck/keymap.c b/planck/keymap.c index cd8615e..fbddbbf 100644 --- a/planck/keymap.c +++ b/planck/keymap.c @@ -16,6 +16,12 @@ #include QMK_KEYBOARD_H +// Returns true if `pos` on the left hand of the keyboard, false if right. +static bool on_left_hand(keypos_t pos) { + // works not really on planck for bottom row, but we handle that differently + return pos.row < MATRIX_ROWS / 2; +} + // layout helper macro, we just use 34 keys #undef LAYOUT #define LAYOUT(\ |