Reputation: 289
How does one go about determing the physical size of the touch (or pen) digitizer in Windows 8.1 using the WinAPI?
I'm using the GetPointerFrameTouchInfo() API which returns a POINTER_TOUCH_INFO struct with an embedded POINTER_INFO struct.
The POINTER_INFO struct has a ptHimetricLocation member which indicates the physical location of a touch with 10 uM resolution (which is way more consistent to work with for gesture recognition).
But, after doing some calculations using the ptHiMetricLocation, it's not possible to accurately find the corresponding pixel location without knowing the physical size of the digitizer.
To clarify, this is not a question about the physical screen size. It's about the touch digitizer (or the pen digitizer).
Upvotes: 2
Views: 282
Reputation: 289
Okay, it turns out this is actually really easy, as long as you have a handle to the device. Just use the GetPointerDeviceRects() function =]
Upvotes: 1