如何在Google TV上跟踪鼠标移动

Pat*_*ick 2 android google-tv

我使用索尼谷歌电视.如果我点击触控板,它将触发onTouchEvent.但如果我只在触摸板上滑动(即:移动箭头),我看不到任何onTouchEvent,也没有onTrackBall事件.有关跟踪触摸板/鼠标移动方式的任何提示?

小智 5

你需要使用onGenericMotionEvent.

你也可以添加一个OnGenericMotionEventListener.