283
|
1 #ifndef INCLUDED_PAD
|
|
2 #define INCLUDED_PAD
|
|
3
|
|
4 #ifndef INCLUDED_BUTTON
|
|
5 # include "Button.h"
|
|
6 #endif
|
|
7
|
|
8 class Pad {
|
|
9 public:
|
|
10 Button count;
|
|
11 Button cross;
|
|
12 Button circle;
|
|
13 Button square;
|
|
14 Button triangle;
|
|
15 Button l1;
|
|
16 Button r1;
|
|
17 Button l2;
|
|
18 Button r2;
|
|
19 Button start;
|
|
20 Button select;
|
|
21 Button l3;
|
|
22 Button r3;
|
|
23 Button up;
|
|
24 Button down;
|
|
25 Button right;
|
|
26 Button left;
|
|
27 Button escape;
|
|
28 Button space;
|
|
29
|
|
30 virtual ~Pad(void) {}
|
|
31 virtual void check(void) = 0;
|
|
32 };
|
|
33
|
|
34 #endif
|
|
35
|
|
36 extern Pad *create_controller(void);
|