Skip to content

Question: How should I call WinRT Pointer API in a desktop application? #233

@Aster-the-Med-Stu

Description

@Aster-the-Med-Stu

Compared with the old Win32 Pointer API, the limitation of 1024 pressure level is removed and has better support for reading stylus's side buttons in WinRT API. This is critical in content creation, as many OEMs are not offering WinTab support for digitizer on 2-in-1/tablets. The pressure level would be limited to 1024 level no matter how high it should have (2048, 4096, or even 8192), letting alone unexpected side button behaviour if vendor driver does something weird, which was asked by me in Microsoft Community.

Misbehaved S Pen side button on a Samsung machine in application using Win32 Pointer API could be seen here: https://filestore.community.support.microsoft.com/api/images/1a5ff4c5-aeda-4c3c-b2ec-3b5856c5fe1a
Note: the side button behaves correctly in UWP applications using WinRT API.

However, the documentation for making this part of WinRT API working in existing desktop application is quite vague. I could only find demo codes using JavaScript or C#, and they're UWP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions