multi-touch for Android Processing
✓ Published0🌍 Public
RRandomEtc
Last edited Mar 7, 2010
Created on Mar 7, 2010
This example demonstrates two-finger pinch-to-zoom and panning of a nested set of square outlines on an Android device. It uses the `MultiTouchController` library, which processes `MotionEvent` data to detect drags and stretches, and the sketch maintains a world offset and scale via `translate` and `scale`. A `TouchHelper` implements the controller’s callback interface, updating the translation and scale values based on touch positions, while the `draw()` function renders the scaled geometry with Processing for Android.
AI-generated description