- added const
- added static check function - added getLastState
This commit is contained in:
+5
-3
@@ -24,9 +24,11 @@ class Gamepad{
|
||||
Gamepad(uint8_t latch, uint8_t clock, uint8_t data);
|
||||
|
||||
bool isPressed(Button button);
|
||||
bool isPressedLast(Button button);
|
||||
uint16_t getState();
|
||||
uint16_t getLastState();
|
||||
bool isPressedLast(Button button) const;
|
||||
uint16_t getState() const;
|
||||
uint16_t getLastState() const { return this->lastState; }
|
||||
|
||||
static bool isPressed(uint16_t input, Button button);
|
||||
|
||||
private:
|
||||
uint16_t readCon();
|
||||
|
||||
Reference in New Issue
Block a user