Class TouchStartEvent
java.lang.Object
com.oorian.messaging.events.Event<TouchListener>
com.oorian.messaging.events.client.ClientEvent<TouchListener>
com.oorian.messaging.events.client.TouchEvent
com.oorian.messaging.events.client.TouchStartEvent
Represents a native touchstart event that occurs when a finger is placed on the touch surface.
This event is fired when one or more touch points are placed on the touch surface. It extends
TouchEvent to inherit coordinate and touch identity tracking and is dispatched to
registered TouchListener instances for processing.
- Since:
- 2026
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTouchStartEvent(int clientX, int clientY, int identifier, int touchCount) Constructs a new TouchStartEvent with the specified touch data. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchTo(TouchListener listener) Dispatches this event to the specified listener for processing.Methods inherited from class com.oorian.messaging.events.client.TouchEvent
getClientX, getClientY, getIdentifier, getTouchCountMethods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTarget
-
Constructor Details
-
TouchStartEvent
public TouchStartEvent(int clientX, int clientY, int identifier, int touchCount) Constructs a new TouchStartEvent with the specified touch data.- Parameters:
clientX- the X coordinate of the first changed touch relative to the client viewportclientY- the Y coordinate of the first changed touch relative to the client viewportidentifier- the unique identifier of the touch pointtouchCount- the number of currently active touch points
-
-
Method Details
-
dispatchTo
Dispatches this event to the specified listener for processing.- Specified by:
dispatchToin classEvent<TouchListener>- Parameters:
listener- the listener to which this event should be dispatched
-