mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 04:45:33 +00:00
56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
#ifndef OPENXR_INPUT_MANAGER_HPP
|
|
#define OPENXR_INPUT_MANAGER_HPP
|
|
|
|
#include "openxrmanager.hpp"
|
|
#include "../mwinput/inputmanagerimp.hpp"
|
|
|
|
#include <vector>
|
|
#include <array>
|
|
#include <iostream>
|
|
|
|
namespace MWVR
|
|
{
|
|
//struct OpenXRPoseImpl;
|
|
//// TODO: Make this an OSG node/group and attach posed elements to it ?
|
|
//struct OpenXRPose
|
|
//{
|
|
//public:
|
|
// enum
|
|
// {
|
|
|
|
// };
|
|
|
|
//protected:
|
|
// OpenXRPose(osg::ref_ptr<OpenXRManager> XR, TrackedLimb limb, TrackingMode mode);
|
|
// ~OpenXRPose();
|
|
|
|
//public:
|
|
|
|
// bool isActive();
|
|
// void update();
|
|
|
|
// TrackedLimb limb() const;
|
|
// TrackingMode trackingMode() const;
|
|
//
|
|
|
|
// OpenXRPoseImpl& impl() { return *mPrivate; }
|
|
|
|
//private:
|
|
// std::unique_ptr<OpenXRPoseImpl> mPrivate;
|
|
//};
|
|
|
|
struct OpenXRInputManagerImpl;
|
|
struct OpenXRInputManager
|
|
{
|
|
OpenXRInputManager(osg::ref_ptr<OpenXRManager> XR);
|
|
~OpenXRInputManager();
|
|
|
|
void updateControls();
|
|
|
|
OpenXRInputManagerImpl& impl() { return *mPrivate; }
|
|
|
|
std::unique_ptr<OpenXRInputManagerImpl> mPrivate;
|
|
};
|
|
}
|
|
|
|
#endif
|