Suppress idle keyswitch events from virtual hardware device

The virtual hardware device, unlike others, was calling `handleKeyswitchEvent()`
for every keyswitch, every cycle. It should suppress calls corresponding to idle
keyswitches, just like the other devices.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/979/head
Michael Richters 4 years ago
parent 2b6e6f437c
commit a393f4778e
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -260,6 +260,7 @@ void VirtualKeyScanner::actOnMatrixScan() {
break;
}
if (key_state != 0)
handleKeyswitchEvent(Key_NoKey, key_addr, key_state);
keystates_prev_[key_addr.toInt()] = keystates_[key_addr.toInt()];

Loading…
Cancel
Save