keyboard-quantizer-doc icon indicating copy to clipboard operation
keyboard-quantizer-doc copied to clipboard

keyboard quantizer prevent the left spacebar interrupt despite the right spacebar works

Open jw0785 opened this issue 11 months ago • 4 comments

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.

jw0785 avatar Mar 14 '24 04:03 jw0785

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.

jw0785 avatar Mar 15 '24 00:03 jw0785

As for vial, i think that repo misses a keymap.h?

jw0785 avatar Mar 15 '24 18:03 jw0785

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.

jw0785 avatar Jun 25 '24 07:06 jw0785

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

jw0785 avatar Jun 25 '24 20:06 jw0785