back to achordion
better support of one hand rolls
This commit is contained in:
parent
0d8942571b
commit
edf089efd7
9 changed files with 666 additions and 15 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue