back to achordion

better support of one hand rolls
This commit is contained in:
Christoph Cullmann 2024-12-20 22:41:24 +01:00
parent 0d8942571b
commit edf089efd7
No known key found for this signature in database
9 changed files with 666 additions and 15 deletions

View file

@ -20,5 +20,11 @@ KC_NO, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29
KC_NO, K30, K31, K32, K33, KC_NO\
)
// 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;
}
// our shared 42 keys keymap
#include "common/keymap.h"

View file

@ -20,6 +20,12 @@ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29
K30, K31, K32, K33\
)
// 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;
}
// no led
#define CC_NO_LED

View file

@ -20,5 +20,11 @@ K20, K21, K22, K23, K24, KC_NO, KC_NO, K25, K26, K27, K28, K29
KC_NO, KC_NO, KC_NO, K30, K31, KC_NO, KC_NO, K32, K33, KC_NO, KC_NO, KC_NO\
)
// 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 < 3) || (pos.row == 3 && pos.col < 3) || (pos.row == 7 && pos.col > 2);
}
// our shared 42 keys keymap
#include "common/keymap.h"

View file

@ -20,6 +20,12 @@ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29
K30, K31, K32, K33\
)
// 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;
}
// no led
#define CC_NO_LED