androidgoogle-tv

How to track mouse movement on Google TV


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?


Solution

  • You need to use onGenericMotionEvent.

    You can also add an OnGenericMotionEventListener.