RflySimSDK
v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
simulink
vrpn
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
25
class
VRPN_API
vrpn_Connection
;
26
27
class
VRPN_API
vrpn_Event_Analog
:
public
vrpn_Analog
{
28
29
public
:
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
37
~vrpn_Event_Analog
();
38
39
protected
:
40
41
// read available events
42
// returns number of structs read successfully
43
int
read_available_data();
44
45
protected
:
46
47
// typedefs for convenience
48
typedef
vrpn_vector<struct vrpn_Event::input_event>
event_vector_t
;
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
定义
vrpn_Analog.h:28
vrpn_Connection
Generic connection class not specific to the transport mechanism.
定义
vrpn_Connection.h:562
vrpn_Event_Analog
定义
vrpn_Event_Analog.h:27
vrpn_vector
定义
vrpn_Shared.h:552
制作者
1.11.0