mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:56:25 +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++) {
|
for (var i = 0; i < this.keys.length; i++) {
|
||||||
this.keys[i].remove();
|
this.keys[i].remove();
|
||||||
}
|
}
|
||||||
|
// resets the cursor and magnifier
|
||||||
|
this.updateVisibility(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.show = function() {
|
this.show = function() {
|
||||||
|
@ -340,6 +342,7 @@ Keyboard = (function(params) {
|
||||||
if (HMD.magnifier == visible) {
|
if (HMD.magnifier == visible) {
|
||||||
HMD.toggleMagnifier();
|
HMD.toggleMagnifier();
|
||||||
}
|
}
|
||||||
|
Window.cursorVisible = !visible;
|
||||||
Overlays.editOverlay(tthis.background, { visible: tthis.visible });
|
Overlays.editOverlay(tthis.background, { visible: tthis.visible });
|
||||||
for (var i = 0; i < this.keys.length; i++) {
|
for (var i = 0; i < this.keys.length; i++) {
|
||||||
this.keys[i].updateVisibility();
|
this.keys[i].updateVisibility();
|
||||||
|
|
Loading…
Reference in a new issue