49 lines
865 B
JavaScript
49 lines
865 B
JavaScript
/**
|
|
* Touch Controls
|
|
* @constructor
|
|
* @param parent
|
|
* @param apiComponent
|
|
*/
|
|
R3.Controls.Touch = function(
|
|
parent,
|
|
apiComponent
|
|
) {
|
|
|
|
__RUNTIME_COMPONENT_MACRO__;
|
|
|
|
R3.API.Controls.Touch.call(
|
|
this,
|
|
apiComponent,
|
|
apiComponent.sensitivity
|
|
);
|
|
|
|
R3.Controls.call(
|
|
this,
|
|
parent
|
|
);
|
|
|
|
};
|
|
|
|
/**
|
|
* Inheritance
|
|
* @type {R3.Controls}
|
|
*/
|
|
R3.Controls.Touch.prototype = Object.create(R3.Controls.prototype);
|
|
R3.Controls.Touch.prototype.constructor = R3.Controls.Touch;
|
|
|
|
/**
|
|
* Create Instance
|
|
* @returns
|
|
*/
|
|
R3.Controls.Touch.prototype.createInstance = function() {
|
|
this.instance = true;
|
|
R3.Component.prototype.createInstance.call(this);
|
|
};
|
|
|
|
/**
|
|
* Update Instance
|
|
*/
|
|
R3.Controls.Touch.prototype.updateInstance = function(property) {
|
|
R3.Controls.prototype.updateInstance.call(this, property);
|
|
};
|