Four finger gestures

Erik 1 Reputation point
2022-06-08T12:28:35.417+00:00

Hi,

We have an UWP app that uses three and four finger gestures. The app was written for Windows 10. Now when people are moving to Windows 11 the gestures will not work unless the user turns off the “Three- and four-finger touch gestures” in Windows settings. I have two questions.
• Is there a way to override the three and four finger gestures in a specific app?
• Is it possible to programmatically read this setting in an app to notify the user that there is a problem?

Best regards,
Erik

Developer technologies | Universal Windows Platform (UWP)
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-06-09T02:54:53.97+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Is there a way to override the three and four finger gestures in a specific app?

    No, currently there is no way to achieve this.

    Is it possible to programmatically read this setting in an app to notify the user that there is a problem?

    I have to say no, UWP doesn't have APIs that could check the information in the Windows Settings. My suggestion is that you could directly launch the Windows Setting app when the user launches your app. Tell the users that they need to turn off the “Three- and four-finger touch gestures” in Windows settings and navigate to the setting page directly.

    You could launch the setting app like this:

              // The URI to launch  
                var uriBing = new Uri(@"ms-settings:devices-touchpad");  
      
                // Launch the URI  
                var success = await Windows.System.Launcher.LaunchUriAsync(uriBing);  
    

    If that URI does not navigate to the touchpad page, you could go through this document : Launch the Windows Settings app and try other URI like Mouse & touchpad.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Limitless Technology 39,931 Reputation points
    2022-06-09T07:23:42.103+00:00

    Hi there,

    Yes, you can programmatically read any setting in an app if you fix the variables right. For finger gestures, you can use the pointer notifications to fix your variables and detect the error and report it.

    You need to find the two most recent errors from the application log on your local computer for this and then compare them with these variables. Use the Get-EventLog cmdlet to specify the log name as the application choose the type of error and specifies the newest 2 entries.

    Get-EventLog -LogName application -EntryType error -Newest 2

    -------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.