TouchEvent
-
class
HPS.TouchEvent: HPS.InputEvent The TouchEvent class is the event generated for each touch action on a multi-touch device.
Public Types
-
enum
Action Enumeration of various actions touches can undergo for a TouchEvent.
Values:
-
TouchDown A touch, or touches, has just gone down.
-
TouchUp A touch, or touches, has just gone up.
-
Move A touch, or touches, has just moved.
-
Public Functions
-
override string
ClassName()
-
override HPS.Event
Clone() Allocates and returns a copy of this TouchEvent.
Return: A copy of this TouchEvent.
-
override void
Dispose()
-
override bool
Drop(HPS.Event in_that_event) Determines if this TouchEvent can be dropped in favor of the following touch event.
Param in_that_event: Event to compare with this TouchEvent. Return: true if this event can be dropped, false otherwise.
-
override bool
Equals(HPS.InputEvent in_that) Check if the source object is equivalent to this object.
Param in_that: The source object to compare to this object. Return: true if the objects are equivalent, false otherwise.
-
bool
Equals(HPS.TouchEvent in_that) Check if the source object is equivalent to this object.
Param in_that: The source object to compare to this object. Return: true if the objects are equivalent, false otherwise.
-
override bool
Equals(Object obj)
-
override int
GetHashCode()
-
TouchEvent() The default constructor creates an uninitialized TouchEvent object.
-
TouchEvent(HPS.Event in_event) This constructor converts an EventObject to a TouchEvent object.
Param in_event: The EventObject to be converted.
-
TouchEvent(HPS.TouchEvent in_that)
-
TouchEvent(HPS.TouchEvent.Action in_action) This constructor creates a TouchEvent object for a given action without an array of Touches. Specifying TouchUp without an array of Touches clears tracked touches.
Param in_action: Action of this TouchEvent.
-
TouchEvent(HPS.TouchEvent.Action in_action, HPS.ModifierKeys in_modifier) This constructor creates a TouchEvent object for a given action without an array of Touches. Specifying TouchUp without an array of Touches clears tracked touches.
Param in_action: Action of this TouchEvent. Param in_modifier: The modifier keys for this TouchEvent.
-
TouchEvent(HPS.TouchEvent.Action in_action, HPS.Touch[] in_touches) This constructor creates a TouchEvent object for a given action with an array of Touches. Specifying TouchUp with an empty an array of Touches clears tracked touches.
Param in_action: Action of this TouchEvent. Param in_touches: An array or touches for this TouchEvent.
-
TouchEvent(HPS.TouchEvent.Action in_action, HPS.Touch[] in_touches, HPS.ModifierKeys in_modifier) This constructor creates a TouchEvent object for a given action with an array of Touches. Specifying TouchUp with an empty an array of Touches clears tracked touches.
Param in_action: Action of this TouchEvent. Param in_touches: An array or touches for this TouchEvent. Param in_modifier: The modifier keys for this TouchEvent.
Public Static Functions
-
bool
operator!=(HPS.TouchEvent a, HPS.TouchEvent b)
-
bool
operator==(HPS.TouchEvent a, HPS.TouchEvent b)
-
enum