This Class allows the joystick, buttons and petiometers to be implemented easily and coherently in other classes
Fork of Gamepad by
Diff: Controller.cpp
- Revision:
- 27:d51c87ced56e
- Parent:
- 26:ccdf299b26c4
- Child:
- 29:77cfc0348743
--- a/Controller.cpp Sun Apr 16 21:18:08 2017 +0000 +++ b/Controller.cpp Mon Apr 24 09:47:15 2017 +0000 @@ -233,7 +233,7 @@ } -int Controller::check_for_buttons() { +int Controller::check_for_buttons() { //return int depending on specific interrupt if (check_event(A_PRESSED)) { return 1; } else if (check_event(B_PRESSED)) { @@ -251,3 +251,4 @@ else { return 0; } } +