mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 14:47:19 +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) {
|
||||
if (this.processStylus(controllerData)) {
|
||||
Pointers.enablePointer(this.pointer);
|
||||
return makeRunningValues(true, [], []);
|
||||
} else {
|
||||
Pointers.disablePointer(this.pointer);
|
||||
return makeRunningValues(false, [], []);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue