vrpn 07.36
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_Event_Analog.h
Go to the documentation of this file.
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
26
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
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
58
59};
60
61#endif // _VRPN_EVENT_ANALOG_H_
vrpn_Analog(const char *name, vrpn_Connection *c=NULL)
Definition vrpn_Analog.C:14
Generic connection class not specific to the transport mechanism.
vrpn_Event_Analog(const char *name, vrpn_Connection *connection, const char *evdev_name)
event_vector_t event_data
unsigned long max_num_events
vrpn_vector< struct vrpn_Event::input_event > event_vector_t
#define VRPN_API
class VRPN_API vrpn_Connection