1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 08:15:33 +00:00
openmw-tes3mp/apps/openmw/mwvr/openxrinputmanager.hpp

38 lines
779 B
C++
Raw Normal View History

#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
{
2020-02-14 21:11:19 +00:00
struct OpenXRActionEvent
{
MWInput::InputManager::Actions action;
bool onPress;
};
struct OpenXRInputManagerImpl;
struct OpenXRInputManager
{
OpenXRInputManager(osg::ref_ptr<OpenXRManager> XR);
~OpenXRInputManager();
void updateControls();
2020-02-14 21:11:19 +00:00
PoseSet getHandPoses(int64_t time, TrackedSpace space);
bool nextActionEvent(OpenXRActionEvent& action);
OpenXRInputManagerImpl& impl() { return *mPrivate; }
std::unique_ptr<OpenXRInputManagerImpl> mPrivate;
};
}
#endif