| PathEngine home | previous: | next: |
Used to obtain messages about any keys that went up or down since the last frame.
const char* receiveKeyMessage();
|
While there is an event queued, a pointer to a C string describing the event.
This string must not be deleted.
When there are no events queued, a null pointer is returned.
This method is used to obtain messages about any keys that went up or down since the last frame.
(So since the last time
The testbed maintains an internal queue of key press messages.
Each time you call this method, an event is removed from the queue.
See
Up key messages are prepended by the character 'u'.
Down key messages are prepended by the character 'd'.
This method is suitable for event driven input.
For example, where pressing a key should cause an action.
To simply check if a key is down, use
| Documentation for PathEngine release 5.18 - Copyright © 2002-2008 PathEngine | next: |