This is the way I normally print to file (PDF) also.
Just looked in Settings->Printers and discovered that I have a PDF printer listed along with my...
I know that in Xorg X11 you can use xev and xinput... That will show keyboard and mouse inputs, but also works with touchscreen. In Xorg, touchscreen...