new GOWN.interaction.KeyboardManager(renderer, options)
The keyboard manager deals with key events. Any DisplayObject can be interactive
if its interactive parameter is set to true (similar to the InteractionManager
in PIXI)
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
renderer |
PIXI.CanvasRenderer | PIXI.WebGLRenderer | A reference to the current renderer | ||||||||
options |
object |
optional
|
Extends
- EventEmitter
Members
-
autoPreventDefaultbool
-
Should default browser actions automatically be prevented.
- Default Value:
- false
-
eventDataObject
-
An event data object to handle all the event tracking/dispatching
-
rendererPIXI.SystemRenderer
-
The renderer this interaction manager works for.
Methods
-
destroy()
-
Remove events and listener etc.
-
processInteractive(displayObject, func)
-
Traverse through the scene graph to call the given function on all displayObjects that can receive keys
Name Type Description displayObject
PIXI.Container | PIXI.Sprite | PIXI.extras.TilingSprite The displayObject that will be resized (recurcsivly crawls its children) func
function optional The function that will be called on each resizable object. The displayObject will be passed to the function