mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-08 17:48:46 -10:00
This adds an abstraction layer over the previous TrackIR implementation and also adds an interface for the FreeTrack protocol.
34 lines
559 B
C++
34 lines
559 B
C++
#ifndef HEADTRACKING_INTERNAL_H
|
|
#define HEADTRACKING_INTERNAL_H
|
|
|
|
#include "globalincs/pstypes.h"
|
|
|
|
#include "headtracking/headtracking.h"
|
|
|
|
namespace headtracking
|
|
{
|
|
namespace internal
|
|
{
|
|
class HeadTrackingException : public std::runtime_error
|
|
{
|
|
public:
|
|
explicit HeadTrackingException(const std::string& _Message)
|
|
: runtime_error(_Message)
|
|
{
|
|
}
|
|
};
|
|
|
|
class HeadTrackingProvider
|
|
{
|
|
public:
|
|
virtual ~HeadTrackingProvider()
|
|
{
|
|
}
|
|
|
|
virtual bool query(HeadTrackingStatus* statusOut) = 0;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // HEADTRACKING_INTERNAL_H
|