From c1f8d5061c47aca0f501f254bc088fd34e268b0d Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 2 Mar 2024 14:55:58 +0100 Subject: add q8 keymap --- totem/keymaps/default/keymap.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'totem') diff --git a/totem/keymaps/default/keymap.c b/totem/keymaps/default/keymap.c index 9b7019c..9c452be 100644 --- a/totem/keymaps/default/keymap.c +++ b/totem/keymaps/default/keymap.c @@ -15,6 +15,12 @@ #include "totem.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(\ -- cgit v1.2.3