[英]Get Touch Events from Windows for Tablet or Collaboration Display
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.我想从操作系统获取全局触摸事件,类似于使用“kernel32”dll 中的 GetSystemInfo 获取系统信息的方式。 I am developing a console app that detects the when the screen of the device is touched like a tablet pc or Collaboration Display.
我正在开发一个控制台应用程序,它可以检测何时触摸设备的屏幕,如平板电脑或协作显示器。
So if the user touches the screen, it gets notified and increments a counter.
因此,如果用户触摸屏幕,它会收到通知并增加一个计数器。
GetLastInputInfo can be used for touch interaction. GetLastInputInfo可用于触摸交互。
Related: Detect last interaction (touch) and display confirmation box相关: 检测最后一次交互(触摸)并显示确认框
Note: This function will also work for mouse input and keyboard input.注意:此 function 也适用于鼠标输入和键盘输入。 But considering that it is a touch screen device, users are more inclined to touch interaction.
但考虑到是触屏设备,用户更倾向于触控交互。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.