I am currently writing an application that receives touch input through the windows WM_INPUT
messages and the HID API. Every touch point received has a handle to the device associated from which it came. This is the same device that the family of WM_POINTER
messages would report for the same touch point. My application needs to know which monitor corresponds to a particular touch device. Is there a programmatic way to determine this? If I was using the WM_POINTER
API I could use MonitorFromPoint
or something similar.
In the control panel under "hardware and sound" there is a category "Tablet PC Settings". If you click this category, a dialog box launches which has a button "Setup". This button launches a calibration tool which allows you to pair a USB HID touch device with a monitor. Does anyone know where these settings might be saved to?
relevant links:
structure received in WM_INPUT
messages:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms645562(v=vs.85).aspx
Structure received in WM_POINTER
messages:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh454907(v=vs.85).aspx
Thanks.