Choreonoid
1.8
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Variables
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
p
q
r
s
t
v
w
z
Enumerations
Enumerator
a
b
c
d
f
g
i
k
l
m
n
p
s
t
u
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
i
l
n
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Properties
Related Functions
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
v
w
y
Files
File List
File Members
All
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Util
JoystickInterface.h
Go to the documentation of this file.
1
6
#ifndef CNOID_UTIL_JOYSTICK_INTERFACE_H
7
#define CNOID_UTIL_JOYSTICK_INTERFACE_H
8
9
#include <cmath>
10
11
namespace
cnoid
{
12
13
class
JoystickInterface
14
{
15
public
:
16
virtual
int
numAxes
()
const
= 0;
17
virtual
int
numButtons
()
const
= 0;
18
virtual
bool
readCurrentState
() = 0;
19
virtual
double
getPosition
(
int
axis)
const
= 0;
20
virtual
bool
getButtonState
(
int
button)
const
= 0;
21
};
22
23
}
24
25
#endif
cnoid::JoystickInterface
Definition:
JoystickInterface.h:13
cnoid::JoystickInterface::numAxes
virtual int numAxes() const =0
cnoid::JoystickInterface::readCurrentState
virtual bool readCurrentState()=0
cnoid
Definition:
AbstractSceneLoader.h:11
cnoid::JoystickInterface::numButtons
virtual int numButtons() const =0
cnoid::JoystickInterface::getPosition
virtual double getPosition(int axis) const =0
cnoid::JoystickInterface::getButtonState
virtual bool getButtonState(int button) const =0
Generated by
1.8.17