| Version 1 (modified by , 15 years ago) ( diff ) | 
|---|
WaitKeypress
Causes the application to wait for a keypress and returns the key pressed.
char WaitKeypress(void);
Parameters
- Function does not accept any parameters
 
Return Value
- Function returns the key pressed
 
Remarks
The application must call OpenBeeper before WaitKeypress may be used.
Examples
DisplayText(0, FONT_HEIGHT * 20, "Press any key");
char ch = WaitKeypress();
ClearLCD();
string str = StrFmt("You pressed %c", ch);
DisplayText(0, 0, str);
See Also
  Note:
 See   TracWiki
 for help on using the wiki.
    ![(please configure the [header_logo] section in trac.ini)](/chrome/site/cardinal.gif)