我希望能够与轨迹球进行“一键激活”式交互。也就是说,我希望在推送的开始和结束时有一个事件通知。目前,使用下面的代码,我只能在放开轨迹球/垫时获得一个事件。
/**
* listen for clicks
*/
public boolean navigationClick(int status, int time)
{
System.out.println("click (" + status + "," + time + ")");
return super.navigationClick(status, time);
}
/**
* listen for movement
*/
public boolean navigationMovement(int dx, int dy, int status, int time)
{
System.out.println("move (" + dx + "," + dy + "," + status + "," + time + ")");
return super.navigationMovement(dx, dy, status, time);
}
当我第一次按下按钮时是否会触发事件?