Crypt Mbed
Dependencies: mbed wave_player 4DGL-uLCD-SE USBHost
Diff: oldcodeplace.cpp
- Revision:
- 0:9d0cdfe46974
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/oldcodeplace.cpp Thu Dec 09 07:53:03 2021 +0000 @@ -0,0 +1,37 @@ + + +//void actionW() { +// action(1); +//} +//void actionA() { +// action(2); +//} +//void actionS() { +// action(3); +//} +//void actionD() { +// action(4); +//} + +////handles actions for button press +//void action(int i) { +// //get lock for action +// int c = -1; +// actM.lock(); +// //if (actLock) { +// //lock out further actions +// actM.lock(); +// actLock = 0; +// actM.unlock(); +// //check if action is within beat (beat center is 100) +// c = counter; +// //if (c >= 76 || c <= 25) { +// currAction = i; +// //} +// //} +// actM.unlock(); +// //make changes to game board if action was recorded +//// if (c != -1) { +//// processAction(); +//// } +//} \ No newline at end of file