How to track mouse movement on Google TV

心已入冬 提交于 2019-12-10 23:42:23

问题


I use a Sony Google TV. If I click on the trackpad, it'll fire a onTouchEvent. But if I only slide on the touchpad (ie: moving the arrow), i dont see any onTouchEvent, neither onTrackBall event. Any hints about the way to track the touchpad/mouse movement?


回答1:


You need to use onGenericMotionEvent.

You can also add an OnGenericMotionEventListener.



来源:https://stackoverflow.com/questions/8144691/how-to-track-mouse-movement-on-google-tv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!