special handle thumb keys

This commit is contained in:
Christoph Cullmann 2024-11-20 23:16:30 +01:00
parent 1177df59a0
commit ec10618bb9
No known key found for this signature in database
3 changed files with 7 additions and 1 deletions

View file

@ -7,6 +7,8 @@
char chordal_hold_handedness(keypos_t key) char chordal_hold_handedness(keypos_t key)
{ {
// special handle thumb keys
if (key.row == 3 || key.row == 7) return '*';
return (key.row < MATRIX_ROWS / 2) ? 'L' : 'R'; return (key.row < MATRIX_ROWS / 2) ? 'L' : 'R';
} }

View file

@ -7,6 +7,8 @@
char chordal_hold_handedness(keypos_t key) char chordal_hold_handedness(keypos_t key)
{ {
// special handle thumb keys
if (key.row == 3 || key.row == 7) return '*';
return (key.row < MATRIX_ROWS / 2) ? 'L' : 'R'; return (key.row < MATRIX_ROWS / 2) ? 'L' : 'R';
} }

View file

@ -7,7 +7,9 @@
char chordal_hold_handedness(keypos_t key) char chordal_hold_handedness(keypos_t key)
{ {
return ((key.row < 3) || (key.row == 3 && key.col < 3) || (key.row == 7 && key.col > 2)) ? 'L' : 'R'; // special handle thumb keys
if (key.row == 3 || key.row == 7) return '*';
return (key.row < MATRIX_ROWS / 2) ? 'L' : 'R';
} }
// layout helper macro, we just use 42 keys // layout helper macro, we just use 42 keys