Read the key or the mouse button (do not wait) (For modes 2D, 3D, Console)
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.
Was this helpful?
Read the key or the mouse button (with waiting) (For modes 2D, 3D, Console)
Block called until desired event arrived.
This command return the next information waiting in keyboard buffer. If nothing was pressed since the last keyboard buffer clearing (command Clear input queue), the program stops and waits until the key or mouse button is pressed.
Was this helpful?
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.
Was this helpful?
Enabled input from the keyboard and from the mouse. (For modes 2D, 3D)
Turns input from keyboard or mouse on or off.
If you disable the keyboard input, Baltie ignores every key or mouse button press in the Read key... commands. This can be used e. g. in the case you want the keyboard buffer to stay unchanged in some part of the program
Was this helpful?
Is the key pressed (For modes 2D, 3D, Console)
Returns true if the given key is pressed.
Was this helpful?
Last event (For modes 2D, 3D)
Returns last read event.
Was this helpful?
Last pressed key-code (For modes 2D, 3D, Console)
Returns code of the last read key.
This number does not depend on the language settings and can be used especially for the game controls.
Was this helpful?
Last pressed key-char (For modes 2D, 3D, Console)
Returns char of the last read key.
Reading the character will not erase it. Thus we can query it any number of times before next character is read.
Was this helpful?


Did you find this information useful?
Documentation of SGP Baltie 4 C#
Send us comments on this topic by this form ©1978-2010 SGP Systems

Parent page | Previous page | Next page