代码拉取完成,页面将自动刷新
同步操作将从 ianaxe/vrpn 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/* vrpn_raw_sgibox.h
*
* This file describes the interface to an SGI dial & button box that
* is connected through a serial interface. This allows the control of
* the boxes without going through the SGI GL library, rather using the
* serial interface to connect with the device.
*/
#ifndef VRPN_RAW_SGIBOX
#define VRPN_RAW_SGIBOX
#include "vrpn_Configure.h" // for VRPN_API
#include "vrpn_Analog.h"
#include "vrpn_Dial.h"
#include "vrpn_Button.h"
class VRPN_API vrpn_Connection;
/* Number of buttons and number of dials on sgi button/dial boxes */
#define vrpn_SGI_NUM_BUTTONS (32)
#define vrpn_SGI_NUM_DIALS (8)
#define vrpn_SGI_NUMDEVS (vrpn_SGI_NUM_BUTTONS+vrpn_SGI_NUM_DIALS)
class VRPN_API vrpn_raw_SGIBox :public vrpn_Analog, public vrpn_Dial, public vrpn_Button_Filter {
public:
vrpn_raw_SGIBox(char * name, vrpn_Connection * c, char *serialDevName);
void mainloop();
int reset();
int send_light_command();
protected:
void get_report();
void check_press_bank(int base_button, unsigned char base_command,
unsigned char command);
void check_release_bank(int base_button, unsigned char base_command,
unsigned char command);
private:
int serialfd; // Serial port that has been opened
int mid_values[vrpn_SGI_NUM_DIALS]; //< Used to perform clamping
int last_values[vrpn_SGI_NUM_DIALS]; //< Used by dial reporting code
};
#endif // VRPN_RAW_SGIBOX
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。