How to detect touch down in python with libevdev?

Viewed 21

Im writing an touch event in python with libevdev. I get all events i need but only when i stop touching. Is there a way to get the touch down event while im still touching ?

while True:
    btn = libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, value=1)
    if btn in d.events():
        print('There is a button event in there') #prints on touch release
0 Answers
Related