mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-18 09:25:32 +00:00
Link DolphinIController.cpp, start matching CSmallAllocPool
Former-commit-id: 228319e2a5
This commit is contained in:
20
include/Kyoto/Input/CControllerButton.hpp
Normal file
20
include/Kyoto/Input/CControllerButton.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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; }
|
||||
bool 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;
|
||||
};
|
||||
|
||||
#endif // __CCONTROLLERBUTTON_HPP__
|
||||
Reference in New Issue
Block a user