Class threedee.KeyboardUpdater
Extends
.
This updater can be bound to a HTML element (Window is default) where
it listens for key presses and releases to transform the connected node
according to the key pressed and velocity settings.
Defined in: KeyboardUpdater.js.
Constructor Attributes | Constructor Name and Description |
---|---|
threedee.KeyboardUpdater(element)
Constructs a new keyboard updater connected to the specified HTML element.
|
Method Attributes | Method Name and Description |
---|---|
update(node, delta)
|
Class Detail
threedee.KeyboardUpdater(element)
Constructs a new keyboard updater connected to the specified HTML element.
- Parameters:
- {(Window|Element)=} element
- The element to which the keyboard event handlers are connected. This is optional and defaults to the browser window.
Method Detail
update(node, delta)
- Parameters:
- {!threedee.SceneNode} node
- {number} delta