Gistix / portal2vr

Portal 2 VR Mod
752 stars 19 forks source link

Workaround: make ingame menu work properly in VR #13

Closed fholger closed 11 months ago

fholger commented 11 months ago

Since the ingame menu refuses to render at the full texture height, this workaround makes it so that it still appears properly on the VR overlay.

For input, I changed the way input is injected to directly send input events to the WINAPI. This makes mouse input fully working in the main menu, even on the dialogue buttons, and it makes button inputs work, as well. Mouse input does not currently work in the ingame menu for unknown reasons, but the button inputs do work, so the menu is now fully usable in VR.