mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 00:53:17 +02:00
disable stylus pointer when not being used
This commit is contained in:
parent
7613bddefa
commit
132b33dbe7
1 changed files with 2 additions and 0 deletions
|
@ -140,8 +140,10 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
|
|
||||||
this.isReady = function (controllerData) {
|
this.isReady = function (controllerData) {
|
||||||
if (this.processStylus(controllerData)) {
|
if (this.processStylus(controllerData)) {
|
||||||
|
Pointers.enablePointer(this.pointer);
|
||||||
return makeRunningValues(true, [], []);
|
return makeRunningValues(true, [], []);
|
||||||
} else {
|
} else {
|
||||||
|
Pointers.disablePointer(this.pointer);
|
||||||
return makeRunningValues(false, [], []);
|
return makeRunningValues(false, [], []);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue