Class R.components.Input
Extends
R.components.Base.
A component which can read an input device and make those inputs
available to a R.engine.GameObject.
Defined in: input.js.
Constructor Attributes | Constructor Name and Description |
---|---|
R.components.Input(name, priority)
Create an input component.
|
- Fields borrowed from class R.components.Base:
- TYPE_COLLIDER, TYPE_INPUT, TYPE_LOGIC, TYPE_RENDERING, TYPE_TRANSFORM
Method Attributes | Method Name and Description |
---|---|
Get the class name of this object
|
- Methods borrowed from class R.components.Base:
- execute, getGameObject, getHostObject, getPriority, getType, getTypeString, release, setGameObject, setHostObject, setPriority
- Methods borrowed from class R.engine.BaseObject:
- addEvent, addEvents, destroy, getElement, jQ, removeEvent, setElement, triggerEvent, update
- Methods borrowed from class R.engine.PooledObject:
- clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.components.Input(name, priority)
Create an input component.
- Parameters:
- name
- {String} The name of the component
- priority Optional, Default: 1.0
- {Number} The component's priority
Method Detail
{String}
getClassName()
Get the class name of this object
- Returns:
- {String} "R.components.Input"