TypingBreaks: fix off-by-one on leftKeys / rightKeys

previously, the right thumbcluster on the model 100 counted towards the leftKeys counter

Signed-off-by: Norwin <git@nroo.de>
master
Norwin 2 years ago
parent fefc6699ba
commit 3655f9a517

@ -103,7 +103,7 @@ EventHandlerResult TypingBreaks::onKeyEvent(KeyEvent &event) {
// So it seems we did not need to lock up. In this case, lets increase key
// counters if need be.
if (event.addr.col() <= Runtime.device().matrix_columns / 2)
if (event.addr.col() < Runtime.device().matrix_columns / 2)
left_hand_keys_++;
else
right_hand_keys_++;

Loading…
Cancel
Save