mirror of https://github.com/PrimeDecomp/prime.git
21 lines
666 B
C++
21 lines
666 B
C++
#ifndef __CCONTROLLERBUTTON_HPP__
|
|
#define __CCONTROLLERBUTTON_HPP__
|
|
|
|
class CControllerButton {
|
|
public:
|
|
CControllerButton() : x0_pressed(false), x1_pressEvent(false), x2_releaseEvent(false) {}
|
|
void SetIsPressed(bool pressed) { x0_pressed = pressed; }
|
|
uint GetIsPressed() const { return x0_pressed; }
|
|
void SetPressEvent(bool press) { x1_pressEvent = press; }
|
|
bool GetPressEvent() const { return x1_pressEvent; }
|
|
void SetReleaseEvent(bool release) { x2_releaseEvent = release; };
|
|
bool GetReleaseEvent() const { return x2_releaseEvent; }
|
|
|
|
private:
|
|
uchar x0_pressed;
|
|
uchar x1_pressEvent;
|
|
uchar x2_releaseEvent;
|
|
};
|
|
|
|
#endif // __CCONTROLLERBUTTON_HPP__
|