zoom and pan :multi_touch problem
in
Android Processing
•
1 year ago
I have this code in my application which is for zooming and panning
void keyPressed() {
if (key == 'a') {
zoom += 0.1;
}
else if (key == 'z') {
zoom -= 0.1;
}
by pressing a it zoom in and by z it zoom out . but in mobile it just zoom in by one touch on the screen and I could not add keyboard to the app to be able to press a and z .now how can I change it in way to zoom in and zoom out by multi-touch ?
1