keyboard-quantizer-doc
keyboard-quantizer-doc copied to clipboard
keyboard quantizer prevent the left spacebar interrupt despite the right spacebar works
when it gets certain type speed, sometimes the last key is repeated, like "thisi iss the keyboardord ", it doesn't happen when slowed down, so i can rule out the chattering. And this also doesn't happen without quantizer.
I also tried the full version. It's unfortunately the same. I tried to build the full version firmware with #define USB_POLLING_INTERVAL_MS 4, but somehow after flashing it the quantizer stopped responding, so i had to flash the prebuilt one back.
As for vial, i think that repo misses a keymap.h?
I think I find out what is actually happening. Normally, the spacebar will interrupt other keys not released, but when using the quantizer, the left spacebar will instead repeat the rest compressed key, when the right spacebar works normally.
a quick test with this,
from pynput.keyboard import Key, Listener
def on_press(key):
try:
print(f'Alphanumeric key {key.char} pressed')
except AttributeError:
print(f'Special key {key} pressed')
def on_release(key):
print(f'{key} released')
if key == Key.esc:
# Stop listener
return False
# Collect events until released
with Listener(on_press=on_press, on_release=on_release) as listener:
listener.join()
it reveals that when "h" "i" "s" is not fully released, pressing space key result in repetitively sending the last pressed key, but the space key is nowhere to be found:
Alphanumeric key h pressed Alphanumeric key i pressed Alphanumeric key s pressed 'h' released 'i' released 's' released Alphanumeric key h pressed Alphanumeric key i pressed Alphanumeric key s pressed 'h' released 'i' released 's' released Alphanumeric key h pressed Alphanumeric key i pressed Alphanumeric key s pressed 'h' released 'i' released 's' released