Windows 7 reports the number of touch points available to the system under the computer properties - is there a way to get that info in .NET 4?
Windows 7 exposes this via GetSystemMetrics(SM_MAXIMUMTOUCHES). Since you need this in C#, you need to use P/Invoke:
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
static extern int GetSystemMetrics(int nIndex);
const int SM_MAXIMUMTOUCHES = 95;
int GetPointsAvailable()
{
return GetSystemMetrics(SM_MAXIMUMTOUCHES);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With