简体   繁体   English

从 Windows 获取触控事件,用于平板电脑或协作显示器

[英]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.

相关问题 如何通过 winforms 从 Windows 7 平板电脑召唤触摸键盘? - How can I summon the touch keyboard from a Windows 7 tablet, through winforms? 有没有办法在Windows 8中模拟触摸事件 - Is there a way to simulate touch events in Windows 8 以编程方式触发Windows 7触摸和手势事件 - Programatically fire windows 7 touch and gesture events 如何在Windows RT中有效响应触摸事件 - How to efficiently react to touch events in Windows RT WPF触摸事件在Windows 8.1中不起作用 - Wpf touch events not working in windows 8.1 Windows Phone 7中似乎无法从TouchPanel获得触摸输入 - Can't seem to get touch input from TouchPanel in Windows Phone 7 WPF:是否有可能将普通鼠标事件“路由”到Windows 7中的触摸事件 - WPF: Is there a possibility to “route” ordinary mouse events to touch events in Windows 7 从 UWP 应用程序重新启动 windows 平板电脑? - Restart a windows tablet from a UWP application? 在Windows 10 Store App中显示触摸键盘 - Display touch keyboard in Windows 10 Store App 垂直滑动模拟鼠标事件已发送到Windows 10平板电脑上的Windows Forms应用程序中的错误控件 - Vertical swipe simulated mouse events sent to wrong control in Windows Forms app on Windows 10 tablet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM