Type interface
Represents pointer, i.e. mouse cursor or touch point.
Inheritance
IPointer does not extend any other symbol.
IPointer is not extended by any other symbol.
Properties
button # |
Type For mousedown events, we need to know which mouse button was clicked: 1 - left button 2 - middle button 3 - right button |
---|---|
dragStartEvents # |
Type A reference to "dragstart" event if it's necessary. Normally we don't execute this event on draggable sprites immediately on DOWN event. We wait until it is actually moved to do it. |
dragTarget # |
Type Contains reference to InteractionObject which is currently being dragged by this pointer. This is used to run checks if we should trigger hovers on other elements when element is being dragged. |
hitTimeout # |
Type Holds a timeout identifier for HIT event. This is used to delay HIT event so that we can catch DOUBLEHIT. (if enabled) |
id # |
Type An ID of the pointer. Mouse is always "0". |
lastDownEvent # |
Type A reference to last "down" event in case we need to access it for some other operation, such as initiating drag on a different object. |
lastEvent # |
Type A reference to the last encountered event object. |
lastUpEvent # |
Type A reference to last "up" event in case we need to access it for some other operation, such as initiating drag on a different object. |
point # |
Type Current position of the pointer. |
startPoint # |
Type A |
startTime # |
Type A timestamp of when the pointer was created. |
swipeCanceled # |
Type Holds indicator if swipe gesture was canceled. |
swipeTimeout # |
Type Holds a reference to a swipe timeout. |
touch # |
Type Is that a touch pointer? |
track # |
Type Holds information about trail of the pointer movement. It's an array of |