Class 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:
    1. Right-click and go up: the scale is increased. release the button.
    2. Right-click and go down: the scale is decreased. release the button.
    • 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.
    • Constructor Detail

      • MultiTouchEvent

        public MultiTouchEvent()
    • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Event