RflySimSDK
v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
simulink
vrpn
vrpn_Joylin.h
1
/*
2
# Linux Joystick. Interface to the Linux Joystick driver by Vojtech Pavlik
3
# included in several Linux distributions. The server code has been tested
4
# with Linux Joystick driver version 1.2.14. Yet, there is no way how to
5
# map a typical joystick's zillion buttons and axes on few buttons and axes
6
# really used. Unfortunately, even joysticks of the same kind can have
7
# different button mappings from one to another. Driver written by Harald
8
# Barth (haba@pdc.kth.se).
9
*/
10
11
#ifndef VRPN_JOYLIN
12
#define VRPN_JOYLIN
13
#include "vrpn_Analog.h"
// for vrpn_Analog
14
#include "vrpn_Button.h"
// for vrpn_Button_Filter
15
#include "vrpn_Configure.h"
// for VRPN_API
16
17
class
VRPN_API
vrpn_Joylin
:
public
vrpn_Analog
,
public
vrpn_Button_Filter
{
18
public
:
19
vrpn_Joylin
(
const
char
* name,
vrpn_Connection
* c,
const
char
* portname);
20
~vrpn_Joylin
();
21
22
void
mainloop
(
void
);
23
24
#ifdef VRPN_USE_JOYLIN
25
protected
:
26
int
init
();
27
private
:
28
int
namelen;
29
int
fd;
30
int
version;
31
char
*devname;
32
char
*device;
33
#endif
34
};
35
36
#endif
37
vrpn_Analog
定义
vrpn_Analog.h:28
vrpn_BaseClass::init
virtual int init(void)
vrpn_Button_Filter
定义
vrpn_Button.h:66
vrpn_Connection
Generic connection class not specific to the transport mechanism.
定义
vrpn_Connection.h:562
vrpn_Joylin
定义
vrpn_Joylin.h:17
vrpn_Joylin::mainloop
void mainloop(void)
制作者
1.11.0