mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Added comment about difference bewteen getButtonPress and getButtonClick
This commit is contained in:
parent
c6795d10e2
commit
c55c77fa03
1 changed files with 8 additions and 1 deletions
9
PS3BT.h
9
PS3BT.h
|
@ -67,9 +67,16 @@ public:
|
|||
virtual void Reset(); // Use this to reset the service
|
||||
virtual void disconnect(); // Use this void to disconnect any of the controllers
|
||||
|
||||
/* PS3 Controller Commands */
|
||||
/* PS3 Controller Commands */
|
||||
/*
|
||||
getButtonPress will return true as long as the button is held down
|
||||
While getButtonClick will only return it once
|
||||
So you instance if you need to increase a variable once you would use getButtonClick,
|
||||
but if you need to drive a robot forward you would use getButtonPress
|
||||
*/
|
||||
bool getButtonPress(Button b);
|
||||
bool getButtonClick(Button b);
|
||||
|
||||
uint8_t getAnalogButton(AnalogButton a);
|
||||
uint8_t getAnalogHat(AnalogHat a);
|
||||
int16_t getSensor(Sensor a);
|
||||
|
|
Loading…
Reference in a new issue