The mouse pointer is being held down.
The mouse pointer is being moved.
The mouse pointer is released.
The mouse wheel changes.
The pointer lock has changed.
A touch pointer has been been cancelled by the browser.
A touch pointer has been started.
A touch pointer has been started.
A touch pointer has been started.
Creates a new Interactive Object.
This is called automatically by the Input Manager when you enable a Game Object for input.
The resulting Interactive Object is mapped to the Game Object's input
property.
name | type | description |
---|---|---|
gameObject | Phaser.GameObjects.GameObject |
The Game Object to which this Interactive Object is bound. |
hitArea | any |
The hit area for this Interactive Object. Typically a geometry shape, like a Rectangle or Circle. |
hitAreaCallback | Phaser.Types.Input.HitAreaCallback |
The 'contains' check callback that the hit area shape will use for all hit tests. |
The new Interactive Object.
Creates a new Pixel Perfect Handler function.
Access via InputPlugin.makePixelPerfect
rather than calling it directly.
name | type | description |
---|---|---|
textureManager | Phaser.Textures.TextureManager |
A reference to the Texture Manager. |
alphaTolerance | number |
The alpha level that the pixel should be above to be included as a successful interaction. |
The new Pixel Perfect Handler function.