TouchListener, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | |
| public int | stateMask
The state of the keyboard modifier keys and mouse masks at the time the event was generated. |
| public Touch[] | touches
The set of touches representing the state of all contacts with touch input device at the time the event was generated. |
| public int | x
The widget-relative x coordinate of the pointer at the time the touch occurred. |
| public int | y
The widget-relative y coordinate of the pointer at the time the touch occurred. |
| Access | Constructor and Description |
|---|---|
| public | TouchEvent(Event
the untyped event containing the information e)Constructs a new instance of this class based on the information in the given untyped event. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a string representation of the eventOverrides org. |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| stateMask | back to summary |
|---|---|
| public int stateMask The state of the keyboard modifier keys and mouse masks at the time the event was generated. | |
| touches | back to summary |
|---|---|
| public Touch[] touches The set of touches representing the state of all contacts with touch input device at the time the event was generated.
| |
| x | back to summary |
|---|---|
| public int x The widget-relative x coordinate of the pointer at the time the touch occurred. | |
| y | back to summary |
|---|---|
| public int y The widget-relative y coordinate of the pointer at the time the touch occurred. | |
| TouchEvent | back to summary |
|---|---|
| public TouchEvent(Event e) Constructs a new instance of this class based on the information in the given untyped event.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Returns a string containing a concise, human-readable description of the receiver. | |