vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_Laputa.h
Go to the documentation of this file.
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
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
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
Laputa VR head-mounted display base class.
Definition: vrpn_Laputa.h:19
#define VRPN_API