Download uC/GUI user manual

Transcript
652
CHAPTER 21
Keyboard Input
Prototype
void GUI_ClearKeyBuffer(void);
GUI_GetKey()
Description
Returns the current contents of the key buffer.
Prototype
int GUI_GetKey(void);
Return value
Codes of characters in key buffer; 0 if no keys in buffer.
GUI_StoreKey()
Description
Stores a key in the buffer.
Prototype
void GUI_StoreKey(int Key);
Parameter
Key
Meaning
May be any extended ASCII character (between 0x20 and 0xFF) or any predefined
µC/GUI character code.
Additional Information
This function is typically called by the driver and not by the application itself.
GUI_WaitKey()
Description
Waits for a key to be pressed.
Prototype
int GUI_WaitKey(void);
Additional Information
The application is "blocked", meaning it will not return until a key is pressed.
User's & reference manual for μC/GUI
© 2002-2006 Micrium Technologies Corporation