![]() |
Xors3d Engine
|
Functions | |
| void | xFlushKeys () |
| Flushes all the currently queued keystrokes. | |
| int | xGetKey () |
| This command will check to see if a key has been pressed and will return its ASCII value. | |
| int | xKeyDown (int key) |
| Checks if specified key is pressed. | |
| int | xKeyHit (int key) |
| Returns the number of times a specified key has been hit since the last time you called the xKeyHit() command. | |
| int | xKeyUp (int key) |
| Checks if specified key was released. | |
| void | xWaitKey () |
| Stops programm until any key is pressed. | |
| void xFlushKeys | ( | ) |
Flushes all the currently queued keystrokes.
This command 'resets' or 'empties out' the queue holding the keyboard inputs
| int xKeyHit | ( | int | key | ) |
Returns the number of times a specified key has been hit since the last time you called the xKeyHit() command.
| key | Corresponding key scancode |
| int xKeyUp | ( | int | key | ) |
Checks if specified key was released.
This command returns 1 after each release of the key which was pressed before.
| key | Corresponding key scancode |
| void xWaitKey | ( | ) |
Stops programm until any key is pressed.
This command makes your program halt until a key is pressed on the keyboard. Used alone, it simply halts and waits for a key press.
| int xKeyDown | ( | int | key | ) |
Checks if specified key is pressed.
This command (similar to its counterparts xMouseDown() and xJoyDown()) is used to detect if a key is being held down. This command returns a 0 if the key is not held down, a 1 if the key is held down.
| key | Corresponding key scancode |
| int xGetKey | ( | ) |
This command will check to see if a key has been pressed and will return its ASCII value.