mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
- set cursor invisible when virtual-keyboard is shown.
- get rid of the invisible cursor/magnifier states when cleaning up keyboard.
This commit is contained in:
parent
818aac01d1
commit
0a41033c85
1 changed files with 3 additions and 0 deletions
|
@ -321,6 +321,8 @@ Keyboard = (function(params) {
|
|||
for (var i = 0; i < this.keys.length; i++) {
|
||||
this.keys[i].remove();
|
||||
}
|
||||
// resets the cursor and magnifier
|
||||
this.updateVisibility(false);
|
||||
};
|
||||
|
||||
this.show = function() {
|
||||
|
@ -340,6 +342,7 @@ Keyboard = (function(params) {
|
|||
if (HMD.magnifier == visible) {
|
||||
HMD.toggleMagnifier();
|
||||
}
|
||||
Window.cursorVisible = !visible;
|
||||
Overlays.editOverlay(tthis.background, { visible: tthis.visible });
|
||||
for (var i = 0; i < this.keys.length; i++) {
|
||||
this.keys[i].updateVisibility();
|
||||
|
|
Loading…
Reference in a new issue