Drop the idle-case check

We're not calling `onKeyswitchEvent` in the idle cases anymore, drop the check
for a few bytes saved.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/389/head
Gergely Nagy 6 years ago
parent 2871836cc0
commit 8a426cc3e3

@ -34,8 +34,6 @@ EventHandlerResult TopsyTurvy::onKeyswitchEvent(Key &mapped_key, byte row, byte
if (mapped_key.raw == Key_RightShift.raw) if (mapped_key.raw == Key_RightShift.raw)
bitWrite(mod_state_, 1, keyIsPressed(key_state)); bitWrite(mod_state_, 1, keyIsPressed(key_state));
if (!keyIsPressed(key_state) && !keyWasPressed(key_state))
return EventHandlerResult::OK;
if (mapped_key < ranges::TT_FIRST || mapped_key > ranges::TT_LAST) if (mapped_key < ranges::TT_FIRST || mapped_key > ranges::TT_LAST)
return EventHandlerResult::OK; return EventHandlerResult::OK;

Loading…
Cancel
Save