现在我没有任何android 4.1设备,但是老板要求在我的android应用程序中处理蓝牙鼠标的滚轮事件。
public boolean onTrackballEvent(MotionEvent event)
{
if(event.getButtonState() == MotionEvent.BUTTON_TERTIARY)
{
//This is the wheel event case,
//but I don't know what the other things about wheel rolling forward or rolling back,
//who can tell me how to process the wheel rolling forward and back status
}
}
请帮助我,谢谢!