RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Laputa.h
浏览该文件的文档.
1
9// Based on vrpn_Oculus driver
10
11#pragma once
12
13#include "vrpn_HumanInterface.h"
14#include "vrpn_Analog.h"
15
16#if defined(VRPN_USE_HID)
17
19class VRPN_API vrpn_Laputa : public vrpn_Analog, protected vrpn_HidInterface {
20public:
26 vrpn_Laputa(const char *name, vrpn_Connection *c = NULL);
27
31 virtual ~vrpn_Laputa();
32
33 virtual void mainloop();
34
35protected:
36 //-------------------------------------------------------------
37 // Parsers for different report types.
38 // Override to define more parsers
39 virtual bool parse_message(std::size_t bytes, vrpn_uint8 *buffer);
40
41 //-------------------------------------------------------------
42 // Parsers for different report types. The Laputa Hero sends type-1
43 // reports in response to inertial-only keep-alive messages
44 //
46 void parse_message_type_1(std::size_t bytes, vrpn_uint8 *buffer);
47
50 void on_data_received(std::size_t bytes, vrpn_uint8 *buffer);
51
53 struct timeval d_timestamp;
54};
55
56#endif // VRPN_USE_HID
定义 vrpn_Analog.h:28
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_HumanInterface.h:70
Laputa VR head-mounted display base class
定义 vrpn_Laputa.h:19
void on_data_received(std::size_t bytes, vrpn_uint8 *buffer)
void parse_message_type_1(std::size_t bytes, vrpn_uint8 *buffer)
Parse and send reports for type-1 message
vrpn_Laputa(const char *name, vrpn_Connection *c=NULL)
virtual ~vrpn_Laputa()
Destructor.
virtual void mainloop()