趣味で作ってるロボット用ソフトウェア
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Files
Functions
Enumerations
Enumerator
Friends
Pages
lib
input
Joystick.h
Go to the documentation of this file.
1
#ifndef HRK_JOYSTICK_H
2
#define HRK_JOYSTICK_H
3
9
#include <memory>
10
11
12
namespace
hrk
13
{
14
class
Joystick
15
{
16
public
:
17
enum
{
18
Auto = -1,
19
};
20
21
Joystick
();
22
~
Joystick
();
23
24
static
int
count();
25
26
const
char
* what();
27
28
bool
open(
int
index = Auto);
29
bool
is_open()
const
;
30
void
close();
31
32
const
char
* product_name()
const
;
33
int
axis_count()
const
;
34
int
buttons_count()
const
;
35
short
axis_value(
int
index)
const
;
36
bool
is_button_pressed(
int
index)
const
;
37
38
private
:
39
Joystick
(
const
Joystick
& rhs);
40
Joystick
& operator = (
const
Joystick
& rhs);
41
42
struct
pImpl;
43
std::auto_ptr<pImpl> pimpl;
44
};
45
}
46
47
#endif
hrk::Joystick
Definition:
Joystick.h:14
Generated on Tue Oct 24 2017 04:56:04 for 趣味で作ってるロボット用ソフトウェア by
1.8.6