Processing Forum
Thank's again ..Copy code
Copy code
- ...
- public void draw(){
- //or even cooler just use that handle drag method straight in your code
- ZoomDragHandler.handleDrag(10,10);
- // my comment: how I can use the UP and DOWN arrow key ?
Copy code..
- //so you can really use any kind of input or device(like a keyboard with a keypress) to control panning zooming or rotating or whatever through that method
- //this is especially nice because the
- cam.SetDistance(10)
- //does not behave at all like zooming with the mouse (i think the same is true of rotate and pan ie there is not damping and they use different methods within the package)
- }
- ....