RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Event_Analog.h
1/**************************************************************************************************/
2/* */
3/* Copyright (C) 2004 Bauhaus University Weimar */
4/* Released into the public domain on 6/23/2007 as part of the VRPN project */
5/* by Jan P. Springer. */
6/* */
7/**************************************************************************************************/
8/* */
9/* module : vrpn_Event_Analog.h */
10/* project : */
11/* description: base class for devices using event interface */
12/* */
13/**************************************************************************************************/
14
15#ifndef _VRPN_EVENT_ANALOG_H_
16#define _VRPN_EVENT_ANALOG_H_
17
18// includes, system
19
20// includes, project
21#include "vrpn_Analog.h" // for vrpn_Analog
22#include "vrpn_Configure.h" // for VRPN_API
23#include "vrpn_Event.h" // for input_event
24
25class VRPN_API vrpn_Connection;
26
27class VRPN_API vrpn_Event_Analog: public vrpn_Analog {
28
29public:
30
31 // constructor
32 // evdev is the event file name
33 vrpn_Event_Analog( const char * name,
34 vrpn_Connection * connection,
35 const char * evdev_name);
36
38
39protected:
40
41 // read available events
42 // returns number of structs read successfully
43 int read_available_data();
44
45protected:
46
47 // typedefs for convenience
49
50 // handle to the event interface
51 int fd;
52
53 // maximal number of event structs read at once
54 unsigned long max_num_events;
55
56 // container for the event structs read
57 event_vector_t event_data;
58
59};
60
61#endif // _VRPN_EVENT_ANALOG_H_
定义 vrpn_Analog.h:28
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_Event_Analog.h:27
定义 vrpn_Shared.h:552