mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:29:01 +02:00
removing dead code
This commit is contained in:
parent
80821e8b7e
commit
84b177996b
1 changed files with 2 additions and 14 deletions
|
@ -11,17 +11,10 @@
|
||||||
Script.include("/~/system/libraries/controllerDispatcherUtils.js");
|
Script.include("/~/system/libraries/controllerDispatcherUtils.js");
|
||||||
Script.include("/~/system/libraries/controllers.js");
|
Script.include("/~/system/libraries/controllers.js");
|
||||||
|
|
||||||
(function () { // BEGIN LOCAL_SCOPE
|
(function() { // BEGIN LOCAL_SCOPE
|
||||||
function PushToTalkHandler() {
|
function PushToTalkHandler() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
this.active = false;
|
this.active = false;
|
||||||
//var pttMapping, mappingName;
|
|
||||||
|
|
||||||
this.setup = function () {
|
|
||||||
//mappingName = 'Hifi-PTT-Dev-' + Math.random();
|
|
||||||
//pttMapping = Controller.newMapping(mappingName);
|
|
||||||
//pttMapping.enable();
|
|
||||||
};
|
|
||||||
|
|
||||||
this.shouldTalk = function (controllerData) {
|
this.shouldTalk = function (controllerData) {
|
||||||
// Set up test against controllerData here...
|
// Set up test against controllerData here...
|
||||||
|
@ -53,10 +46,6 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
return makeRunningValues(true, [], []);
|
return makeRunningValues(true, [], []);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.cleanup = function () {
|
|
||||||
//pttMapping.disable();
|
|
||||||
};
|
|
||||||
|
|
||||||
this.parameters = makeDispatcherModuleParameters(
|
this.parameters = makeDispatcherModuleParameters(
|
||||||
950,
|
950,
|
||||||
["head"],
|
["head"],
|
||||||
|
@ -68,9 +57,8 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
enableDispatcherModule("PushToTalk", pushToTalk);
|
enableDispatcherModule("PushToTalk", pushToTalk);
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
pushToTalk.cleanup();
|
|
||||||
disableDispatcherModule("PushToTalk");
|
disableDispatcherModule("PushToTalk");
|
||||||
};
|
};
|
||||||
|
|
||||||
Script.scriptEnding.connect(cleanup);
|
Script.scriptEnding.connect(cleanup);
|
||||||
}()); // END LOCAL_SCOPE
|
}()); // END LOCAL_SCOPE
|
||||||
|
|
Loading…
Reference in a new issue