Package totalcross.ui.event
Class MultiTouchEvent
- java.lang.Object
-
- totalcross.ui.event.Event
-
- totalcross.ui.event.MultiTouchEvent
-
public class MultiTouchEvent extends Event
MultiTouchEvent works on devices that support more than one finger at a time. It can be emulated in JavaSE by using the right mouse button:- Right-click and go up: the scale is increased. release the button.
- Right-click and go down: the scale is decreased. release the button.
-
-
Constructor Summary
Constructors Constructor Description MultiTouchEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetEventName(int type)Returns the event name.java.lang.StringtoString()MultiTouchEventupdate(Control c, double scale)Updates this event setting also the timestamp, consumed and target.-
Methods inherited from class totalcross.ui.event.Event
clearQueue, getNextAvailableEventId, isAvailable, touch
-
-
-
-
Field Detail
-
SCALE
public static final int SCALE
The event type for a pen or mouse down.- See Also:
- Constant Field Values
-
EVENT_NAME
protected static final java.lang.String[] EVENT_NAME
-
scale
public double scale
The current scale value.
-
-
Method Detail
-
update
public MultiTouchEvent update(Control c, double scale)
Updates this event setting also the timestamp, consumed and target.- Since:
- TotalCross 1.0
-
getEventName
public static java.lang.String getEventName(int type)
Returns the event name. Used to debugging.
-
-