问题
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