MicrosoftDocs / feedback

📢 docs.microsoft.com site feedback
https://learn.microsoft.com
Creative Commons Attribution 4.0 International
239 stars 160 forks source link

How to get the data of pen and touch silmultaneously on touchscreens? #3775

Open ZayneHuang opened 2 years ago

ZayneHuang commented 2 years ago

Problem: I am excited to know that it is possible to get simultaneous pen and touch data on touchscreens through the validation document: https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/simultaneous-pen-and-touch-validation. But I am suffering from obtaining the data under WPF framework on Surface devices. I wonder how DigiInfo gets the data?

Solution: I would like to request a more detailed document or tips on how to get the data since it is still unclear for me to get it.

Alternatives considered:

  1. I have tried to use raw events like TouchMove and MouseMove, but it would not fire events when pen or finger has already on the screen.
  2. I have tried to use other events like StylusMove and so on, but don't work either.
  3. I have tried WndProc, but it is hard for me to split the two signals because the wParam is either 0 or 1 whenever it is pen or finger interacting on the screen.

I just wonder how DigiInfo get the data and how I can get the similar data in WPF framework with Surface devices? Thanks in advance!

welcome[bot] commented 2 years ago

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

ZayneHuang commented 2 years ago

Hi,

How is everything going? Looking forward to your reply~ Thanks