mirror of
https://github.com/lubosz/overte.git
synced 2025-04-13 06:42:10 +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/controllers.js");
|
||||
|
||||
(function () { // BEGIN LOCAL_SCOPE
|
||||
(function() { // BEGIN LOCAL_SCOPE
|
||||
function PushToTalkHandler() {
|
||||
var _this = this;
|
||||
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) {
|
||||
// Set up test against controllerData here...
|
||||
|
@ -53,10 +46,6 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
return makeRunningValues(true, [], []);
|
||||
};
|
||||
|
||||
this.cleanup = function () {
|
||||
//pttMapping.disable();
|
||||
};
|
||||
|
||||
this.parameters = makeDispatcherModuleParameters(
|
||||
950,
|
||||
["head"],
|
||||
|
@ -68,9 +57,8 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
enableDispatcherModule("PushToTalk", pushToTalk);
|
||||
|
||||
function cleanup() {
|
||||
pushToTalk.cleanup();
|
||||
disableDispatcherModule("PushToTalk");
|
||||
};
|
||||
|
||||
Script.scriptEnding.connect(cleanup);
|
||||
}()); // END LOCAL_SCOPE
|
||||
}()); // END LOCAL_SCOPE
|
||||
|
|
Loading…
Reference in a new issue