Fix the key counting

Bail out if the key did NOT toggle on, instead of bailing out only if it did.
This addresses the key count computation part of #1. (Shifting looks fine, after
this change)

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent ba0b69bb89
commit 3d07ca4614

@ -85,7 +85,7 @@ namespace Akela {
return mappedKey; return mappedKey;
// if the key is not toggled on, return. // if the key is not toggled on, return.
if (key_toggled_on (keyState)) if (!key_toggled_on (keyState))
return mappedKey; return mappedKey;
totalKeys++; totalKeys++;

Loading…
Cancel
Save