I would like to get global touch events from the operating system similar to the way you get system info using GetSystemInfo from 'kernel32'dll. I am developing a console app that detects the when the screen of the device is touched like a tablet pc or Collaboration Display .
Asked
Active
Viewed 408 times
-1
-
Is the system of the touch screen device win10? Is your purpose to calculate the total time touched by the user on the device? Or just monitor whether the user is touching the screen? – Strive Sun Jun 23 '20 at 02:30
-
Yes it is Windows 10, and my goal is to just keep a count of the number of times the screen was just. It will be used for some usage analysis. So if the user touches the sceen, it gets notified and increments a counter. – SteamReal Jun 23 '20 at 13:14
1 Answers
0
So if the user touches the screen, it gets notified and increments a counter.
GetLastInputInfo can be used for touch interaction.
Related: Detect last interaction (touch) and display confirmation box
Note: This function will also work for mouse input and keyboard input. But considering that it is a touch screen device, users are more inclined to touch interaction.

Strive Sun
- 5,988
- 1
- 9
- 26