19#ifndef VRPN_FREESPACE_H
20#define VRPN_FREESPACE_H
22#include "vrpn_Configure.h"
24#ifdef VRPN_USE_FREESPACE
26#include <freespace/freespace.h>
28#include "vrpn_Button.h"
30#include "vrpn_Tracker.h"
33class VRPN_API vrpn_Freespace :
55 static vrpn_Freespace* create(
const char *name,
58 bool send_body_frames =
false,
59 bool send_user_frames =
true);
60 virtual ~vrpn_Freespace(
void);
69 static bool _freespace_initialized;
70 static void freespaceInit();
74 vrpn_Freespace(FreespaceDeviceId freespaceId,
75 struct FreespaceDeviceInfo* deviceInfo,
79 void handleUserFrame(
const struct freespace_UserFrame&);
80 void handleBodyFrame(
const struct freespace_BodyFrame&);
81 void handleLinkStatus(
const struct freespace_LinkStatus&);
83 void deviceSetConfiguration(
bool send_body_frames,
bool send_user_frames);
84 void deviceConfigure();
85 void deviceUnconfigure();
89 struct timeval _timestamp;
92 FreespaceDeviceId _freespaceDevice;
93 FreespaceDeviceInfo _deviceInfo;
94 vrpn_float64 _lastBodyFrameTime;
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
virtual void mainloop()
This function should be called each time through app mainloop.