41 enum class tEventType {
42 EVENT_E_UP_PRESSED = 0,
43 EVENT_E_UP_RELEASED = 1,
44 EVENT_E_DN_PRESSED = 2,
45 EVENT_E_DN_RELEASED = 3,
47 EVENT_F_UP_PRESSED = 4,
48 EVENT_F_UP_RELEASED = 5,
49 EVENT_F_DN_PRESSED = 6,
50 EVENT_F_DN_RELEASED = 7,
52 EVENT_L_UP_PRESSED = 8,
53 EVENT_L_UP_RELEASED = 9,
54 EVENT_L_DN_PRESSED = 10,
55 EVENT_L_DN_RELEASED = 11,
57 EVENT_R_UP_PRESSED = 12,
58 EVENT_R_UP_RELEASED = 13,
59 EVENT_R_DN_PRESSED = 14,
60 EVENT_R_DN_RELEASED = 15,
68 enum class tButtonType {
95 button() : _id( tButtonType::kButtonUndefined ), _parent(NULL) {};
96 button(
const tButtonType
id,
controller *parent ) : _id(
id ), _parent(parent) {};
103 void pressed(
void (* callback)(
void) )
const;
118 const button ButtonEUp =
button( tButtonType::kButtonEUp ,
this );
119 const button ButtonEDown =
button( tButtonType::kButtonEDown,
this );
120 const button ButtonFUp =
button( tButtonType::kButtonFUp ,
this );
121 const button ButtonFDown =
button( tButtonType::kButtonFDown,
this );
122 const button ButtonLUp =
button( tButtonType::kButtonLUp ,
this );
123 const button ButtonLDown =
button( tButtonType::kButtonLDown,
this );
124 const button ButtonRUp =
button( tButtonType::kButtonRUp ,
this );
125 const button ButtonRDown =
button( tButtonType::kButtonRDown,
this );
126 const button ButtonL3 =
button( tButtonType::kButtonG ,
this );
127 const button ButtonR3 =
button( tButtonType::kButtonH ,
this );
130 enum class tAxisType {
149 axis() : _id( tAxisType::kAxisUndefined ), _parent(NULL) {};
150 axis(
const tAxisType
id,
controller *parent ) : _id(
id ), _parent(parent) {};
157 void changed(
void (* callback)(
void) )
const;
170 int32_t
position( percentUnits units = percentUnits::pct )
const;
173 const axis AxisA =
axis( tAxisType::kAxisA,
this );
174 const axis AxisB =
axis( tAxisType::kAxisB,
this );
175 const axis AxisC =
axis( tAxisType::kAxisC,
this );
176 const axis AxisD =
axis( tAxisType::kAxisD,
this );