mouse
mouse copied to clipboard
Touchscreen support - Question
so i was wondering if we have touchscreen support via mouse.
my testing program:
import mouse
import time
events = []
mouse.hook(events.append)
while 1:
mouse._listener.queue.join()
for event in events:
print(event)
del events[:]
time.sleep(0.25)
and if i touch and release the touchscreen i get:
ButtonEvent(event_type='down', button='?', time=1664808330.854423)
ButtonEvent(event_type='up', button='?', time=1664808331.035416)
now i tried to trigger a callback-function via mouse.on_button
But it looks like this doesnt work - since button "?" is not implemented?