问题描述
我已经设计在AS3游戏信息亭应用我用它在索尼VAIO l安装(如惠普的touchsmarts)在Windows 7该应用程序不需要任何多点触摸手势(仅限于单点触摸点击和拖动),所以我使用的鼠标事件
i have designed a gaming kiosk app in as3i am using it on a Sony vaio l pc (like hp's touchsmarts) in windows 7the app doesn't need any multi-touch gestures (only single touch clicks and drags) so i am using mouse events
一切正常(包括鼠标点击和移动事件)只是一个单一的触摸屏(无招)不火鼠标下来。它只有在一个小的移动手指的发射
everything is fine (including mouse click and move events) except that a single touch to the screen (with no move) doesn't fire a mouse down. it is fired only after a small move of the finger
应用程序之外,我的桌面上,我看到小窗口7光标立即跳转到手指的放置位置,这意味着这个问题是不是硬件或Windows的问题,而是如何在内部的Flash应用程序接收翻译触摸到鼠标事件的操作系统。
outside the app, on my desktop, i see that the small windows 7 cursor jumps immediately to where a finger is placed, meaning this issue isn't a hardware or a windows problem but rather how internally the flash app receives "translated" touch-to-mouse events from the os.
例如,在Windows纸牌游戏,一个简单的触摸屏幕立刻凸显感动卡。在我的应用程序,一个按钮将变为down状态只有当我抚摸它,也可以移动我的手指略(点击事件 - 下,上 - 被触发精)
for example, in a windows Solitaire game, a simple touch to the screen immediately highlights the touched card.in my app, a button will change to the down state only if i touch it and also move my finger slightly (click events - down and up - are triggered fine)
应该不是MOUSE_DOWN事件触发一模一样如何TOUCH_BEGIN将在新TouchEvent类?
shouldn't the MOUSE_DOWN event trigger exactly like how a TOUCH_BEGIN would in the new touchevent class?
什么想法?
推荐答案
我遇到同样的问题。
在 Multitouch.inputMode
属性设置为 MultitouchInputMode.TOUCH_POINT
(默认值是 MultitouchInputMode.GESTURE)
出现,使 MOUSE_DOWN
事件调度,当用户触摸屏幕,当他们接触和移动或触摸和释放不。
Setting the Multitouch.inputMode
property to MultitouchInputMode.TOUCH_POINT
(the default value is MultitouchInputMode.GESTURE)
appears to make the MOUSE_DOWN
event dispatch when the user touches the screen and not when they touch and move or touch and release.
这篇关于Adobe AIR的:触摸屏不能正常触发鼠标按下事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!