简体   繁体   English

如何检测不移动但将手指放在屏幕上的触摸事件

[英]How to detect touch event that doesn't move but holding a finger on the screen

I want to make some rhythm games with android and want to implement slide notes.我想用android做一些节奏游戏,想实现幻灯片。 I want to detect touch event that finger stays on the screen but it doesn't move.我想检测手指停留在屏幕上但没有移动的触摸事件。 However, MotionEvent detects only Action_down, Action_move and Action_up.但是,MotionEvent 仅检测 Action_down、Action_move 和 Action_up。 How can I solve this problem?我怎么解决这个问题? I tried to use thread but it's cost is too big for multi-touch event.我尝试使用线程,但它的成本对于多点触控事件来说太大了。

Thank you for all you guys to read this questions.感谢大家阅读这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM