talonvoice / talon

Issue Tracker for the main Talon app
85 stars 0 forks source link

[windows] tap.register does not work #667

Open Gedzio opened 1 day ago

Gedzio commented 1 day ago

hey, i tried to play with scripts eye_zoom_mouse.py and eye_mouse.py in this scripts there are invocations

tap.register(tap.MCLICK, self.on_click)
tap.register(tap.MCLICK|tap.HOOK, self.on_click)
tap.register(tap.KEY|tap.HOOK, self.on_key)

but the application never enters to on_click or on_key functions I'm testing on windows10 (talon runs as an administrator and as a regular user)

it leads to many issues like: after the first mouse click self.clicking is always true because this function never changes it

def on_click(self, e):
    if e.up:
        self.clicking = bool(ctrl.mouse_buttons_down())
Gedzio commented 1 day ago

Is there any option to override Controle Mouse behavior? (not zoom and not legacy)

lunixbochs commented 1 day ago

There is an event tap implemented for windows but unfortunately it causes input lag: https://github.com/talonvoice/talon/issues/298#issuecomment-832952244

I probably won't revisit it until python nogil lands, because we can avoid the thread blocking then.

No, there's generally no public api for messing with the eye tracking behavior.

Gedzio commented 1 day ago

thank you very much for an answer