new MoveEvent(relativePos, absolutePos, delta, eventTimeStamp)
Creates an instance of a MoveEvent
.
Parameters:
Name | Type | Description |
---|---|---|
relativePos |
olympe.df.Vector2 | position relative to the coordinates of the |
absolutePos |
olympe.df.Vector2 | absolute position |
delta |
olympe.df.Vector2 | |
eventTimeStamp |
olympe.df.PODateTime |
Extends
Methods
-
getAbsolutePos()
-
Gets the absolute starting position of the move event.
Returns:
Absolute Mouse position
- Type
- olympe.df.Vector2
-
getDelta()
-
Gets the delta, or difference, between the current position and the starting position.
Returns:
(x,y) values for the delta
- Type
- olympe.df.Vector2
-
getEventTimestamp()
-
Gets the time stamp for that event, that is the date and time of its creation.
- Inherited From:
- Overrides:
Returns:
the creation date and time for this event
- Type
- olympe.df.PODateTime
-
getRelativePos()
-
Gets the starting position of the move event relative to the coordinates of its
Element
.Returns:
Mouse position relative to targeted element
- Type
- olympe.df.Vector2