|  | Read the key or the mouse button (do not wait) (For modes 2D, 3D, Console) |  Show exampleHide example | Returns state of keys and mouse buttons. |
This command can be used in the case you don't want the program to wait for the key press and you want only handle the key from the buffer.
Program does not stop at this command. It will only take look at the keyboard buffer whether there is any unhandled key. If there is such key, program remembers all about it similarly to the Read the key or the mouse button (with waiting) command.
|
|
|  | Clear input queue (For modes 2D, 3D, Console) | | Clears queue of input events from keyboard and mouse. |
Sometimes you would want Baltie to forget all former key presses to ensure that it will handle only the keys pressed since the moment. This task is solved by the Clear keyboard buffer icon that clears the buffer.
|
|
|  | Is the key pressed (For modes 2D, 3D, Console) |  Show exampleHide example | Returns true if the given key is pressed. | If the key space is pressed, writes to the output window "Key Space is pressed." If this is not true, writes "Key Space is not pressed." | | |
|
|
|  | Last event (For modes 2D, 3D) |  Show exampleHide example | Returns last read event. | |
|
Did you find this information useful?
Documentation of SGP Baltie 4 C#
Send us comments on this topic by
this form
©1978-2010
SGP SystemsParent page |
Previous page |
Next page