Link CDolphinController.cpp

Former-commit-id: 0450f7b1f1
This commit is contained in:
2022-09-13 22:24:41 -07:00
parent 07d8389435
commit 64fe52845f
8 changed files with 211 additions and 57 deletions

View File

@@ -5,16 +5,16 @@ class CControllerButton {
public:
CControllerButton() : x0_pressed(false), x1_pressEvent(false), x2_releaseEvent(false) {}
void SetIsPressed(bool pressed) { x0_pressed = pressed; }
bool GetIsPressed() const { return x0_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:
bool x0_pressed;
bool x1_pressEvent;
bool x2_releaseEvent;
uchar x0_pressed;
uchar x1_pressEvent;
uchar x2_releaseEvent;
};
#endif // __CCONTROLLERBUTTON_HPP__