触摸识别为MouseDown事件 [英] Recognize touch as MouseDown event

查看:373
本文介绍了触摸识别为MouseDown事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立在C#中的益智游戏,WinForms的一个触摸屏。

I am building a puzzle game in C#, winforms for a touch screen.

我能处理的鼠标处理程序触摸事件,其实,我什么也没做在所有,但它已经认识到我的触动。但是,我不能弄明白的问题。该MOUSE_DOWN,只有当我动了一下我的手指,当我触摸屏幕不承认瞬间发生的。

I am able to handle touch events on mouse handlers, in fact, i did nothing at all, but it already recognizes my touches. However, there is an issue that i can't figure it out. The mouse_down, only happens when i move a bit my finger, and did not recognize the instant when i touch the screen.

有谁已经面临这个问题?
我应该实行一些触摸事件的识别?如果是这样,请你指出我一些文档或例子?

Does anyone has already faced this problem? Should i implement some touch events recognition? If so, could you please point me some documentation or examples?

在事先非常感谢

推荐答案

这听起来像一个合理的解决办法是重写的WndProc和搜索WM_TOUCH事件的一个建议。更多详细的活动: http://stackoverflow.com/a/15785333/3330348

One suggestion that sounds as a plausible solution is to override WndProc and search for a WM_TOUCH event. More details here: http://stackoverflow.com/a/15785333/3330348

这篇关于触摸识别为MouseDown事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆