示例#1
0
 @Override
 public boolean scrolled(int amount) {
   if (this.disableDrag) {
     return false;
   }
   Vector3 mouse_pos = this.unproject(new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0));
   return region_of_interest_.Zoom(mouse_pos.x, mouse_pos.y, amount * 25);
 }
示例#2
0
 @Override
 public boolean zoom(Vector2 screenLocus, float amount) {
   if (this.disableDrag) {
     return false;
   }
   Vector3 locus = this.unproject(new Vector3(screenLocus.x, screenLocus.y, 0));
   return region_of_interest_.Zoom(locus.x, locus.y, amount * 0.5f);
 }