flybywiresim/aircraft

EFB: when using VR, the keyboard for user input disappears when I turn my head

Opened this issue · 4 comments

Aircraft Version

Development

Build info

{
    "built": "2024-03-01T18:14:00+00:00",
    "ref": "refs/heads/master",
    "sha": "83ea2851d9a7472362bdbdd8f61bcb9ab9c9b3e7",
    "actor": "Gurgel100",
    "event_name": "manual",
    "pretty_release_name": "master:83ea2851",
    "version": "a32nx-v0.12.0-dev.83ea285"
}

Describe the bug

While using VR, when I open a keyboard in the EFB (e.g. to enter a target altitude), the keyboard disappears when I move my head left or right.

Expected behavior

I suspect that this was introduced by #8447.
While the intention of this change is correct, the implementation needs a bit more tweaking for VR users like me,

I see two possible approaches here:

  • ideally, only invoke the unfocus event when the head is moved by a far greater amount as it is currently the case. Maybe by 45 degrees or so?
  • the unfocus event could be time delayed, with the timer starting after I enter the first number/character. Then do not invoke it for lets say 10 seconds or so.
  • Both might need some 'playing' around to find the best compromise.

Steps to reproduce

STEPS TO REPRODUCE

  • Can happen at any stage of a flight, just make sure that you are using VR while flying (I am using HP Reverb)
  • Look at the EFB and access the TOD calculator
  • Click on the Target Field -> the EFB will display the keyboard
  • Optional: Click on a number on the keyboard to enter a target altitude
  • Turn your head left or right - a small movement should do

CURRENT OUTCOME

  • the keyboard disappears
  • I have to click into the target altitude field again to make the keyboard show up again

COMMENT
Most likely introduced by #8447

References (optional)

No response

Additional info (optional)

As mentioned above, my guess is that this was introduced by #8447

Discord Username (optional)

StephN-B

Hey, I want to try and reproduce this, which headset are you using?

I am using the HP Reverb headset.

Thanks, using the Quest 3 I can replicate the behavior. Video attached

com.oculus.shellenv-20240302-090941.mp4

We do not yet officially support VR as we do not develop and test for it.
Once the aircraft is more complete and more of the dev team has access to VR headsets we can look into this.