Okay, I widened my search and found a solution for the Kobo that works on the PW2 as well:
Record the touch by:
- cat /dev/input/event1 > touch.txt
- performing the touch on the device (keep it short)
- ctrl+c
Play it back by executing
echo touch.txt > /dev/input/event1
(
Source)