hh79 / gzdoomvr

Classic Doom/Heretic/Hexen games in stereo 3D and VR; modified version of gzdoom.
GNU General Public License v3.0
125 stars 10 forks source link

SteamVR stealing focus and pausing the game on startup and SteamVR does not exit on game end [BUG] #82

Open knowsshit opened 1 year ago

knowsshit commented 1 year ago

GZDoom version

GZDoomVR 4.8.2

Which game are you running with GZDoom?

Doom 2

What Operating System are you using?

Windows 10

Please describe your specific OS version

No response

Relevant hardware info

Oculus Quest 2

Have you checked that no other similar issue already exists?

A clear and concise description of what the bug is.

When I start the game (through explorer or from Steam library as a non-steam game), the game starts up, and SteamVR starts up, but SteamVR takes focus making GZDoomVR in the background. Alt+tab to GZDoomVR makes it work again.

I have tried changing settings to allow GZDoomVR to run properly in the background by setting i_pauseinbackground=false, i_soundinbackground=true and vid_activeinbackground=true, but to no avail. I still need to alt+tab into GZDoomVR after starting it to be able to see it in the headset.

When quitting GZDoomVR from the headset, SteamVR is still running and the desktop/launcher won't be visible in my headset before I manually close down SteamVR. I have made a work around by launching GZDoomVR from a .cmd file which runs tskill vrmonitor after gzdoomvr.exe.

Maybe GZDoomVR can either somehow work even while not in focus OR ensure that it has focus even if SteamVR launches after it? Or is there a better way to launch it?

And maybe GZDoomVR can do whatever other games do to tell OpenVR(?)/SteamVR that the VR game is closed so the desktop/launcher can become visible in the headset again.

Steps to reproduce the behaviour.

Explain how to reproduce

  1. Start gzdoomvr.exe
  2. SteamVR launches automatically and "steals" the focus
  3. Need to alt+tab or click in the gzdoomvr window to make it take focus before gzdoomvr is visible in the headset

Your configuration

No response

Provide a Log

No response

Zod1234 commented 1 year ago

I get this issue as well, needing to alttab. I wanted to ask, maybe related to this, the flat button on the right quest controller usually brings up the steam menu but the button current does no action. When I quit the game I am left in the steamvr environment and the left button remains non-functional. My question is, can that button be reclaimed by doom? Normally it would bring up the doom options menu.

And if so, can one temporarily make it bring up the steamvr menu? I'd like to see it once just to see the steamvr resolution settings etc All my other native steamvr games bring up the steamvr menu when the left button is pressed.