PathEngine home | previous: | next: |
Used to obtain messages about any keys that went up or down since the last frame.
const char* receiveKeyMessage(); |
If there is a key event queued, a pointer to a C string describing the event.
The memory for the return string, in this case, is managed by PathEngine internally, and must not be deleted.
If there is no key event queued, a null pointer.
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
string receiveKeyMessage(); |
String receiveKeyMessage(); |
Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEngine | next: |