代码拉取完成,页面将自动刷新
/**************************************************************************************************/
/* */
/* Copyright (C) 2004 Bauhaus University Weimar */
/* Released into the public domain on 6/23/2007 as part of the VRPN project */
/* by Jan P. Springer. */
/* */
/**************************************************************************************************/
/* */
/* module : vrpn_Event_Analog.h */
/* project : */
/* description: base class for devices using event interface */
/* */
/**************************************************************************************************/
#ifndef _VRPN_EVENT_ANALOG_H_
#define _VRPN_EVENT_ANALOG_H_
// includes, system
#include <vector> // for vector
// includes, project
#include "vrpn_Analog.h" // for vrpn_Analog
#include "vrpn_Configure.h" // for VRPN_API
#include "vrpn_Event.h" // for input_event
class VRPN_API vrpn_Connection;
class VRPN_API vrpn_Event_Analog: public vrpn_Analog {
public:
// constructor
// evdev is the event file name
vrpn_Event_Analog( const char * name,
vrpn_Connection * connection,
const char * evdev_name);
~vrpn_Event_Analog();
protected:
// read available events
// returns number of structs read successfully
int read_available_data();
protected:
// typedefs for convenience
typedef std::vector<struct vrpn_Event::input_event> event_vector_t;
typedef event_vector_t::iterator event_iter_t;
// handle to the event interface
int fd;
// maximal number of event structs read at once
unsigned long max_num_events;
// container for the event structs read
event_vector_t event_data;
};
#endif // _VRPN_EVENT_ANALOG_H_
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。