2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CCONTROLLERBUTTON
|
|
|
|
#define _CCONTROLLERBUTTON
|
2022-09-11 18:45:19 +00:00
|
|
|
|
|
|
|
class CControllerButton {
|
|
|
|
public:
|
|
|
|
CControllerButton() : x0_pressed(false), x1_pressEvent(false), x2_releaseEvent(false) {}
|
|
|
|
void SetIsPressed(bool pressed) { x0_pressed = pressed; }
|
2022-09-14 05:24:41 +00:00
|
|
|
uint GetIsPressed() const { return x0_pressed; }
|
2022-09-11 18:45:19 +00:00
|
|
|
void SetPressEvent(bool press) { x1_pressEvent = press; }
|
2022-10-08 22:05:33 +00:00
|
|
|
uint GetPressEvent() const { return x1_pressEvent; }
|
2022-09-11 18:45:19 +00:00
|
|
|
void SetReleaseEvent(bool release) { x2_releaseEvent = release; };
|
2022-10-08 22:05:33 +00:00
|
|
|
uint GetReleaseEvent() const { return x2_releaseEvent; }
|
2022-09-11 18:45:19 +00:00
|
|
|
|
|
|
|
private:
|
2022-09-14 05:24:41 +00:00
|
|
|
uchar x0_pressed;
|
|
|
|
uchar x1_pressEvent;
|
|
|
|
uchar x2_releaseEvent;
|
2022-09-11 18:45:19 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CCONTROLLERBUTTON
|