I'm trying to write a Windows Mobile application (C#) that will run on the background and will log to a file all the user input gestures: keyboard, mouse and especially touch (screen touch).

I was wondering maybe someone found/wrote code that does this task or similar that I can use.

I saw that 6.5 WM TDK supports motion-gestures API
but i could use a sample code (C#) and also- that only enable capturing motions in a specific application and not globaly.