mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 20:36:38 +02:00
Capture key events
This commit is contained in:
parent
774b4851c3
commit
d9693796bc
1 changed files with 11 additions and 2 deletions
|
@ -1288,6 +1288,15 @@ var CHECK_MARK_COLOR = {
|
||||||
this.items[i].destroy();
|
this.items[i].destroy();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.Panel = Panel;
|
this.Panel = Panel;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
|
Script.scriptEnding.connect(function scriptEnding() {
|
||||||
|
Controller.releaseKeyEvents({text: "left"});
|
||||||
|
Controller.releaseKeyEvents({key: "right"});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Controller.captureKeyEvents({text: "left"});
|
||||||
|
Controller.captureKeyEvents({text: "right"});
|
Loading…
Reference in a new issue