A reference to the current renderer
Registers all the DOM events
Add the ticker listener
Configure an InteractionEvent to wrap a DOM PointerEvent and InteractionData
Puts a event on a queue to be dispatched later. This is used to guarantee correct ordering of over/out events.
Dispatches an event on the display object that was interacted with
Get InteractionData for a given pointerId. Store that data as well
Ensures that the original event object contains all data that a regular pointer event would have
Is called when the pointer button is cancelled
Is called when the pointer button is released on the renderer element
Is called when the pointer button is pressed down on the renderer element
Is called when the pointer moves across the renderer element
Is called when the pointer is moved out of the renderer element
Is called when the pointer is moved into the renderer element
Is called when the pointer button is released on the renderer element
Processes the result of the pointer cancel check and dispatches the event if need be
Processes the result of the pointer down check and dispatches the event if need be
Processes the result of the pointer move check and dispatches the event if need be
Processes the result of the pointer over/out check and dispatches the event if need be
Processes the result of the pointer up check and dispatches the event if need be
Return unused InteractionData to the pool, for a given pointerId
Removes all the DOM events that were previously registered
Remove the ticker listener
Last rendered object or temp object
Should the InteractionManager automatically add tickerUpdate to PIXI.Ticker.system.
Should the InteractionManager automatically add tickerUpdate to PIXI.Ticker.system.
Destroys the interaction manager
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Hit tests a point against the display tree, returning the first interactive object that is hit.
A point to hit test with, in global space.
The hit display object, if any.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Maps x and y coords from a DOM object and maps them correctly to the PixiJS view. The resulting value is stored in the point. This takes into account the fact that the DOM element could be scaled and positioned anywhere on the screen.
the point that the result will be stored in
the x coord of the position to map
the y coord of the position to map
Add a listener for a given event.
Add a one-time listener for a given event.
This function is provides a neat way of crawling through the scene graph and running a specified function on all interactive objects it finds. It will also take care of hit testing the interactive objects and passes the hit across in the function.
event containing the point that is tested for collision
the displayObject that will be hit test (recursively crawls its children)
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Sets the current cursor mode, handling any callbacks or CSS style changes.
cursor mode, a key from the cursorStyles dictionary
Sets the DOM element which will receive mouse/touch events. This is useful for when you have other DOM elements on top of the renderers Canvas element. With this you'll be bale to delegate another DOM element to receive those events.
the DOM element which will receive mouse and touch events.
Updates the state of interactive objects if at least interactionFrequency milliseconds have passed since the last invocation.
Invoked by a throttled ticker update from PIXI.Ticker.system.
time delta since the last call
Updates the state of interactive objects.
Generated using TypeDoc
The interaction manager deals with mouse, touch and pointer events.
Any DisplayObject can be interactive if its
interactive
property is set to true.This manager also supports multitouch.
An instance of this class is automatically created by default, and can be found at
renderer.plugins.interaction
PIXI