Tag: 平板电脑

在应用运行时防止平板电脑进入睡眠状态

我正在尝试编写一个Windows 8平板电脑应用程序,通常可以在接收输入之间多分钟。 问题是,如果我不继续触摸屏幕,节电器将激活,屏幕将自动变黑,并且会中断应用程序的用户。 有没有办法让我的应用程序可以阻止节电器激活,或者至少延长节电器激活所需的时间。

处理触摸和手势事件

我正在开发一个GUI,它涉及来自连接到Windows 7机器的电容式触摸面板的手势输入。 操作系统安装了Tablet PC支持驱动程序,这些驱动程序应该是唯一的通信方式。 我的主要方法是使用在Microsoft.ink.dll中引用的InkCollector类。 它使我能够访问足以实现我正在寻找的行为的SystemGesture事件。 现在问题是SystemGesture.Flick事件在大约一整秒后非常缓慢地到达。 我知道正在处理以识别Flick,但它仍然使这个想法变得不可行。 有关如何加快速度的任何想法? 我的初始化代码如下: public partial class Form1 : Form { public Form1() { InitializeComponent(); InkCollector inkCollector = new InkCollector(this); inkCollector.CollectionMode = CollectionMode.GestureOnly; inkCollector.Enabled = true; inkCollector.SetGestureStatus(ApplicationGesture.AllGestures, true); inkCollector.SystemGesture += SystemGestureEventHandler; inkCollector.Gesture += GestureEventHandler; } public void SystemGestureEventHandler(object o, InkCollectorSystemGestureEventArgs args) { switch (args.Id) { case SystemGesture.Drag: outputText.AppendText(“Drag” + […]