[英]Detecting the size of a users finger on touch
I was wondering if there is a way to find out the size of a persons finger when they touch an android device. 我想知道是否有办法在触摸Android设备时找出人手指的大小。 I want to know this so i can change the sensitivity of certain objects in my game. 我想知道这一点,所以我可以改变游戏中某些物体的灵敏度。
A solution for devices that don't offer the touch.getSize() function, you can have on the start screen a high resolution plot of 2d points. 对于不提供touch.getSize()函数的设备的解决方案,您可以在开始屏幕上获得2d点的高分辨率图。 On touch, detect the ones touched and there you can have a pretty accurate area of how big the finger is. 在触摸时,检测触摸的那些,在那里你可以有一个相当精确的手指有多大的区域。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.