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.
32 lines
349 B
C++
32 lines
349 B
C++
|
|
#ifndef HEADTRACKING_H
|
|
#define HEADTRACKING_H
|
|
|
|
#include "globalincs/pstypes.h"
|
|
|
|
namespace headtracking
|
|
{
|
|
struct HeadTrackingStatus
|
|
{
|
|
float x;
|
|
float y;
|
|
float z;
|
|
|
|
float pitch;
|
|
float roll;
|
|
float yaw;
|
|
};
|
|
|
|
bool init();
|
|
|
|
bool isEnabled();
|
|
|
|
bool query();
|
|
|
|
HeadTrackingStatus* getStatus();
|
|
|
|
void shutdown();
|
|
}
|
|
|
|
#endif // HEADTRACKING_H
|