| | 1 | = WaitKeypress = |
| | 2 | Causes the application to wait for a keypress and returns the key pressed. |
| | 3 | |
| | 4 | {{{ |
| | 5 | char WaitKeypress(void); |
| | 6 | }}} |
| | 7 | |
| | 8 | == Parameters == |
| | 9 | |
| | 10 | * Function does not accept any parameters |
| | 11 | |
| | 12 | == Return Value == |
| | 13 | |
| | 14 | * Function returns the key pressed |
| | 15 | |
| | 16 | == Remarks == |
| | 17 | |
| | 18 | The application must call OpenBeeper before WaitKeypress may be used. |
| | 19 | |
| | 20 | == Examples == |
| | 21 | |
| | 22 | {{{ |
| | 23 | DisplayText(0, FONT_HEIGHT * 20, "Press any key"); |
| | 24 | char ch = WaitKeypress(); |
| | 25 | ClearLCD(); |
| | 26 | string str = StrFmt("You pressed %c", ch); |
| | 27 | DisplayText(0, 0, str); |
| | 28 | }}} |
| | 29 | |
| | 30 | == See Also == |
| | 31 | |
| | 32 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/KeypadSound/OpenBeeper OpenBeeper] |