mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-24 22:59:24 +00:00
Improvements to openvr code
- Overlays are implemented (sans input for the moment) - Fixed a problem where the movemanager was using the wrong values for hmd rotation & position
This commit is contained in:
parent
185fde8ea4
commit
da6bcbeb2b
13 changed files with 380 additions and 32 deletions
|
|
@ -30,7 +30,14 @@ typedef vr::ETrackingUniverseOrigin OpenVRTrackingUniverseOrigin;
|
|||
typedef vr::EOverlayDirection OpenVROverlayDirection;
|
||||
typedef vr::EVRState OpenVRState;
|
||||
|
||||
DefineEnumType(OpenVROverlayInputMethod);
|
||||
DefineEnumType(OpenVROverlayTransformType);
|
||||
DefineEnumType(OpenVRGamepadTextInputMode);
|
||||
DefineEnumType(OpenVRGamepadTextInputLineMode);
|
||||
DefineEnumType(OpenVRTrackingResult);
|
||||
DefineEnumType(OpenVRTrackingUniverseOrigin);
|
||||
DefineEnumType(OpenVROverlayDirection);
|
||||
DefineEnumType(OpenVRState);
|
||||
|
||||
namespace OpenVRUtil
|
||||
{
|
||||
|
|
@ -45,6 +52,8 @@ namespace OpenVRUtil
|
|||
|
||||
/// Converts a MatrixF to a vr::HmdMatrix34_t
|
||||
void convertMatrixFPlainToSteamVRAffineMatrix(const MatrixF &inMat, vr::HmdMatrix34_t &outMat);
|
||||
|
||||
U32 convertOpenVRButtonToTorqueButton(uint32_t vrButton);
|
||||
};
|
||||
|
||||
template<int TEXSIZE> class VRTextureSet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue