wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/KeypadSound/WaitKeypress

Version 2 (modified by Don Wilson, 7 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.