r3-legacy/src/r3-controls-touch.js

49 lines
865 B
JavaScript
Raw Normal View History

2018-04-09 09:35:04 +02:00
/**
* Touch Controls
* @constructor
2019-07-25 22:22:32 +02:00
* @param parent
* @param apiComponent
2018-04-09 09:35:04 +02:00
*/
2019-07-24 08:08:02 +02:00
R3.Controls.Touch = function(
2019-07-25 22:22:32 +02:00
parent,
apiComponent
2018-04-09 09:35:04 +02:00
) {
2019-07-25 22:22:32 +02:00
__RUNTIME_COMPONENT_MACRO__;
2018-04-09 09:35:04 +02:00
R3.API.Controls.Touch.call(
this,
2019-07-25 22:22:32 +02:00
apiComponent,
apiComponent.sensitivity
2018-04-09 09:35:04 +02:00
);
R3.Controls.call(
this,
2019-07-25 22:22:32 +02:00
parent
2018-04-09 09:35:04 +02:00
);
2019-07-25 22:22:32 +02:00
2018-04-09 09:35:04 +02:00
};
/**
* 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;
2019-07-25 22:22:32 +02:00
R3.Component.prototype.createInstance.call(this);
2018-04-09 09:35:04 +02:00
};
/**
* Update Instance
*/
R3.Controls.Touch.prototype.updateInstance = function(property) {
R3.Controls.prototype.updateInstance.call(this, property);
};