[WinUI3] How to check, how many pointers are active at the moment? #4671
Replies: 2 comments 1 reply
-
Mouse.LeftButton mainly calls GetKeyState with VK_LBUTTON and WPF handles messages like WM_POINTERDOWN in the main window procedure (like SetWindowSubclass in WinUI 3) and uses APIs lile GetPointerInfo |
Beta Was this translation helpful? Give feedback.
-
There isn't an API available for this in WinAppSDK. Note that You could track PointerEnter, PointerDown, PointerUp, and PointerLeave events (probably via Would you like to share more about your scenario, in case there is a different feature we should consider adding? |
Beta Was this translation helpful? Give feedback.
-
I need some way to get know, if any pointer is pressed at the moment (and if yes - how many?). Something like Mouse.LeftButton from WPF, which can be called outside of pointer event. How to acheive that?
Beta Was this translation helpful? Give feedback.
All reactions