AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
Diff: objectives/Objective.cpp
- Revision:
- 15:78116b7254d5
- Parent:
- 14:e0bfee0a5e66
- Child:
- 16:e8e96bf22df1
--- a/objectives/Objective.cpp Sat May 23 17:48:03 2015 +0000 +++ b/objectives/Objective.cpp Sat May 23 17:55:38 2015 +0000 @@ -11,6 +11,8 @@ keyboard = board->keyboard; buzzer = board->buzzer; + keyboard->attach(this,&Objective::keyEvent); + status = WAITING; } @@ -28,3 +30,10 @@ status = COMPLETED; } +uint32_t Objective::keyEvent(uint32_t key){ + // play key pressed sound ? + // do nothing by default + return 0; +} + +