Crypt Mbed

Dependencies:   mbed wave_player 4DGL-uLCD-SE USBHost

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers oldcodeplace.cpp Source File

oldcodeplace.cpp

00001 
00002 
00003 //void actionW() {
00004 //    action(1);
00005 //}
00006 //void actionA() {
00007 //    action(2);
00008 //}
00009 //void actionS() {
00010 //    action(3);
00011 //}
00012 //void actionD() {
00013 //    action(4);
00014 //}
00015 
00016 ////handles actions for button press
00017 //void action(int i) {
00018 //    //get lock for action
00019 //    int c = -1;
00020 //    actM.lock();
00021 //    //if (actLock) {
00022 //        //lock out further actions
00023 //        actM.lock();
00024 //        actLock = 0;
00025 //        actM.unlock();
00026 //        //check if action is within beat (beat center is 100)
00027 //        c = counter;
00028 //        //if (c >= 76 || c <= 25) {
00029 //            currAction = i;
00030 //        //}
00031 //    //}
00032 //    actM.unlock();
00033 //    //make changes to game board if action was recorded
00034 ////    if (c != -1) {
00035 ////        processAction();
00036 ////    }
00037 //}