You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PS3BT.h
+37-35Lines changed: 37 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -56,32 +56,34 @@ class PS3BT : public BluetoothService {
56
56
57
57
/** @name PS3 Controller functions */
58
58
/**
59
-
* getButtonPress(Button b) will return true as long as the button is held down.
59
+
* getButtonPress(ButtonEnum b) will return true as long as the button is held down.
60
60
*
61
-
* While getButtonClick(Button b) will only return it once.
61
+
* While getButtonClick(ButtonEnum b) will only return it once.
62
62
*
63
-
* So you instance if you need to increase a variable once you would use getButtonClick(Button b),
64
-
* but if you need to drive a robot forward you would use getButtonPress(Button b).
63
+
* So you instance if you need to increase a variable once you would use getButtonClick(ButtonEnum b),
64
+
* but if you need to drive a robot forward you would use getButtonPress(ButtonEnum b).
65
+
* @param b ::ButtonEnum to read.
66
+
* @return getButtonPress(ButtonEnum b) will return a true as long as a button is held down, while getButtonClick(ButtonEnum b) will return true once for each button press.
65
67
*/
66
-
boolgetButtonPress(Button b);
67
-
boolgetButtonClick(Button b);
68
+
boolgetButtonPress(ButtonEnum b);
69
+
boolgetButtonClick(ButtonEnum b);
68
70
/**@}*/
69
71
/** @name PS3 Controller functions */
70
72
/**
71
73
* Used to get the analog value from button presses.
0 commit comments