[英]How do I detect taps in the gesture area on the Palm Pre?
Playing with my Palm Pre phone. 玩我的Palm Pre手机。 I want to detect the user tapping in the gesture area (the area directly below the screen).
我想检测用户在手势区域(屏幕正下方的区域)中点击。 How do I do that?
我怎么做?
I haven't found anything obvious in the framework API's or service API's. 我没有在框架API或服务API中发现任何明显的东西。
The gesture area is treated as the metaKey
modifier on tap and key events. 手势区域被视为点击和键事件上的
metaKey
修饰符。 Listen for Mojo.Event.tap
anywhere on the page, rest your finger on the gesture area, and then tap where you are listening. 在页面的任何位置收听
Mojo.Event.tap
,将手指放在手势区域,然后点击您正在收听的位置。 The event should have event.metaKey
set to true
. 该事件应将
event.metaKey
设置为true
。
I found this page, which describes capturing gesture-area inputs using the SDL_PollEvent method in the Plug-in Development Kit (PDK): 我找到了这个页面,它描述了使用插件开发工具包(PDK)中的SDL_PollEvent方法捕获手势区域输入:
http://developer.palm.com/index.php?option=com_content&view=article&id=1980&Itemid=337#GestureAreaInput http://developer.palm.com/index.php?option=com_content&view=article&id=1980&Itemid=337#GestureAreaInput
Unfortunately, I haven't figured out how to use the PDK yet... 不幸的是,我还没弄明白如何使用PDK ......
您可以检查mojo-keydown和-keyup - 代码57575.尝试使用API示例,输入,按键部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.