I implemented the events required for full touchscreen support for XInput 2. These events are generated only for DirectTouch devices, which means real touchscreens only, no touchpads. Please take a look and see if the API I'm exposing is useful, and also easy enough to implement on non-X platforms. If there are no problems, I would like to install this. Thanks.