From c55c77fa03263ca96ade1082315246ae2f0a6175 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Wed, 3 Oct 2012 20:49:50 +0200 Subject: [PATCH] Added comment about difference bewteen getButtonPress and getButtonClick --- PS3BT.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PS3BT.h b/PS3BT.h index b6b76225..54edad59 100644 --- a/PS3BT.h +++ b/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);