mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:28:46 +02:00
Android - Make radar turn of the virtual pad
This commit is contained in:
parent
fe5075bff2
commit
8d6d078ea2
1 changed files with 4 additions and 0 deletions
|
@ -1100,6 +1100,8 @@ function startRadar() {
|
||||||
Camera.orientation = Quat.fromPitchYawRollDegrees(-90,0,0);
|
Camera.orientation = Quat.fromPitchYawRollDegrees(-90,0,0);
|
||||||
radar = true;
|
radar = true;
|
||||||
|
|
||||||
|
Controller.setVPadEnabled(false); // this was done before in CompositeExtra in the DisplayPlugin (Checking for camera not independent, not radar mode)
|
||||||
|
|
||||||
connectRadarModeEvents();
|
connectRadarModeEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1108,6 +1110,8 @@ function endRadar() {
|
||||||
Camera.mode = "first person";
|
Camera.mode = "first person";
|
||||||
radar = false;
|
radar = false;
|
||||||
|
|
||||||
|
Controller.setVPadEnabled(true);
|
||||||
|
|
||||||
disconnectRadarModeEvents();
|
disconnectRadarModeEvents();
|
||||||
hideAllEntitiesIcons();
|
hideAllEntitiesIcons();
|
||||||
hideAllAvatarIcons();
|
hideAllAvatarIcons();
|
||||||
|
|
Loading…
Reference in a new issue