Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two fingers tap in C++ WinUI 3 applications for touch monitor. #10079

Open
Ajith-GS opened this issue Oct 17, 2024 · 1 comment
Open

Two fingers tap in C++ WinUI 3 applications for touch monitor. #10079

Ajith-GS opened this issue Oct 17, 2024 · 1 comment
Labels
needs-triage Issue needs to be triaged by the area owners

Comments

@Ajith-GS
Copy link

We are trying to implement a two-finger tap gesture for showing the context menu. The context menu appears in touch and hold by default in touch monitors. In order to create customized actions, how can we recognize and track multiple touch points? Or is there an event that can be used to identify multiple finger touches?
Any assistance is much valued.
Thank you.

NuGet package version
Windows App SDK 1.5.240802000

Packaging type
Unpackaged

Windows version
Windows 10 version 22H2 (19045, 2022 Update)

IDE
Visual Studio 2022

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 17, 2024
@Ajith-GS
Copy link
Author

Ajith-GS commented Dec 3, 2024

Using the pointer pressed and released events, I can track the number of touch points. However, another issue arises: how can we differentiate between a hold and a tap? According to the MSDN documentation, there is a time threshold that distinguishes a hold from a tap, but the exact value of this threshold is not specified. Could anyone provide the value of this threshold or share any relevant documentation? Any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant