1
/**************************************************************************************************/
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. */
7
/**************************************************************************************************/
9
/* module : vrpn_Event_Analog.h */
11
/* description: base class for devices using event interface */
13
/**************************************************************************************************/
15
#ifndef _VRPN_EVENT_ANALOG_H_
16
#define _VRPN_EVENT_ANALOG_H_
22
#include "vrpn_Analog.h"
23
#include "vrpn_Event.h"
25
class VRPN_API vrpn_Event_Analog: public vrpn_Analog {
30
// evdev is the event file name
31
vrpn_Event_Analog( const char * name,
32
vrpn_Connection * connection,
33
const char * evdev_name);
39
// read available events
40
// returns number of structs read succesfully
41
int read_available_data();
45
// typedefs for convenience
46
typedef std::vector<struct vrpn_Event::input_event> event_vector_t;
47
typedef event_vector_t::iterator event_iter_t;
49
// handle to the event interface
52
// maximal number of event structs read at once
55
// container for the event structs read
56
event_vector_t event_data;
60
#endif // _VRPN_EVENT_ANALOG_H_