Thank you so much for your reply. I was able to follow the instructions up to the point where I should detect a pressed key. Anyways, I tried everything with my iPhone and it would not detect any tip on the iPhone's screen. What am I missing here? I get the following: device /dev/input/event6, name "XX:XX:XX:XX:XX:XX", phys "" whereas as mentioned before there are no events detected when touching the screen. The script I am using is:
#import evdev from evdev import InputDevice, categorize, ecodes #event 6 is dedicated to my iPhone dev= InputDevice('/dev/input/event6') #prints out device info at start print(dev) for event in dev.read_loop(): #filters by event type if event.type == ecodes.EV_KEY: print(event)