-
public class MultiTouchController<T>A class that simplifies the implementation of multitouch in applications. Subclass this and read the fields here as needed in subclasses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMultiTouchController.PointInfoA class that packages up all MotionEvent information with all derived multitouch information (if available)
public classMultiTouchController.PositionAndScaleA class that is used to store scroll offsets and scale information for objects that are managed by the multitouch controller
public interfaceMultiTouchController.MultiTouchObjectCanvas
-
Field Summary
Fields Modifier and Type Field Description public final static intMAX_TOUCH_POINTSpublic final static booleanDEBUGpublic final static booleanmultiTouchSupported
-
Constructor Summary
Constructors Constructor Description MultiTouchController(MultiTouchController.MultiTouchObjectCanvas<T> objectCanvas)Constructor that sets handleSingleTouchEvents to true MultiTouchController(MultiTouchController.MultiTouchObjectCanvas<T> objectCanvas, boolean handleSingleTouchEvents)Full constructor
-
Method Summary
Modifier and Type Method Description booleanonTouchEvent(MotionEvent event)Process incoming touch events booleanisPinching()Indicate if we are in the middle of a pinch action or not. intgetMode()-
-
Constructor Detail
-
MultiTouchController
MultiTouchController(MultiTouchController.MultiTouchObjectCanvas<T> objectCanvas)
Constructor that sets handleSingleTouchEvents to true
-
MultiTouchController
MultiTouchController(MultiTouchController.MultiTouchObjectCanvas<T> objectCanvas, boolean handleSingleTouchEvents)
Full constructor
-
-
Method Detail
-
onTouchEvent
boolean onTouchEvent(MotionEvent event)
Process incoming touch events
-
isPinching
boolean isPinching()
Indicate if we are in the middle of a pinch action or not. osmdroid addon
-
getMode
int getMode()
-
-
-
-