Closed dikonov closed 3 years ago
This method is needed for controllers to work, at least in Windows. I cannot help with Linux build, sorry.
The code cannot be compiled while linux build references win32-only methods. They must be removed or placed under some ifdef. I have no idea what these two lines of code do and why controller support is linked to windows (I do not know C or C+). VR controllers work in Linux through native OpenVR-SteamVR or OpenXR without any windows libs. I cannot test functionality of VR controllers yet (my VR rig is incomplete right now). It is possible that I_StartupOpenVR() and I_OpenVRGetYaw() are improperly tagged win32-only, if they are part of OpenVR.
Gamepads in Linux certainly do not need the I_StartupOpenVR() and I_OpenVRGetYaw(), because they can perfectly emulate keyboard+mouse combo with qjoypad or antimicro, which always works.
The file _gzdoomvr-openvr_controller/src/rendering/gl/stereo3d/glopenvr.cpp contains reference to two functions
I_StartupOpenVR()
andI_OpenVRGetYaw()
, which are provided by a win32 only part of the sourceDeleting these with gzdoomvr-delwin32refs.patch.txt allows to complete compilation. I am not sure yet, if the binaries remain functional after this. Please, fix!