mirror of
https://github.com/overte-org/overte.git
synced 2025-04-27 02:56:28 +02:00
35 lines
792 B
C++
35 lines
792 B
C++
//
|
|
// OculusManager.h
|
|
// hifi
|
|
//
|
|
// Created by Stephen Birarda on 5/9/13.
|
|
// Copyright (c) 2012 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __hifi__OculusManager__
|
|
#define __hifi__OculusManager__
|
|
|
|
#include <iostream>
|
|
#include <OVR.h>
|
|
|
|
using namespace OVR;
|
|
|
|
class OculusManager {
|
|
public:
|
|
static void connect();
|
|
|
|
static bool isConnected() { return _isConnected; }
|
|
|
|
static void getEulerAngles(float& yaw, float& pitch, float& roll);
|
|
|
|
static void updateYawOffset();
|
|
private:
|
|
static bool _isConnected;
|
|
static Ptr<DeviceManager> _deviceManager;
|
|
static Ptr<HMDDevice> _hmdDevice;
|
|
static Ptr<SensorDevice> _sensorDevice;
|
|
static SensorFusion _sensorFusion;
|
|
static float _yawOffset;
|
|
};
|
|
|
|
#endif /* defined(__hifi__OculusManager__) */
|