pixi.interaction.InteractionManager
- type
- class
- extends
- EventEmitter
- subclasses
- pixi.core.display.DisplayObject
- metadata
- :native
- "PIXI.interaction.InteractionManager"
Constructor
- parameters
renderer {CanvasRenderer|WebGLRenderer} A reference to the current renderer
[options] {object}
[options.autoPreventDefault=true] {boolean} Should the manager automatically prevent default browser actions.
[options.interactionFrequency=10] {number} Frequency increases the interaction events will be checked.
- parameters
{String} event Name of the event.
{function} fn Callback function.
{Mixed} context The context of the function.
- parameters
eventName {String} The name of the event.
- returns
- {Bool} Indication if we've emitted an event.
- parameters
{String} eventName
- returns
- {Array}
- parameters
{Point} point the point that the result will be stored in
{Float} x the x coord of the position to map
{Float} y the y coord of the position to map
- parameters
{String} event The event we want to remove.
{function} fn The listener that we need to find.
{Bool} once Only remove once listeners.
- parameters
{String} event Name of the event.
{function} fn Callback function.
{Mixed} context The context of the function.
- parameters
{String} event Name of the event.
{function} fn Callback function.
{Mixed} context The context of the function.
- parameters
{Point} point the point that is tested for collision
{Container|Sprite|TilingSprite} displayObject the displayObject that will be hit test (recurcsivly crawls its children)
{function} func the function that will be called on each interactive object. The displayObject and hit will be passed to the function
{Bool} hitTest this indicates if the objects inside should be hit test against the point
- returns
- {Bool} returns true if the displayObject hit the point
- parameters
{String} event The event want to remove all listeners for.
- parameters
{String} event The event we want to remove.
{function} fn The listener that we need to find.
{Bool} once Only remove once listeners.