diff options
Diffstat (limited to 'crkbd')
-rw-r--r-- | crkbd/keymap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crkbd/keymap.c b/crkbd/keymap.c index e5c812e..efeb439 100644 --- a/crkbd/keymap.c +++ b/crkbd/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) +{ + return pos.row < MATRIX_ROWS / 2; +} + // layout helper macro, we just use 42 keys #undef LAYOUT #define LAYOUT(\ |