sysGetKey

Gets the next keyboard key press from the input buffer. Takes no parameters. Returns the ASCII code or special key code of the next key press in the input buffer, or 0 if no key is pressed.

System

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Gets the next keyboard key press from the input buffer. Takes no parameters. Returns the ASCII code or special key code of the next key press in the input buffer, or 0 if no key is pressed.

Technical Exegesis...

Returns the ASCII code or special key code of the next key press in the input buffer. Returns 0 if no key is pressed. Printable characters return their ASCII values (from WM_CHAR). Control keys return: 13=Enter, 27=ESC, 8=Backspace, 9=Tab.

Extended keys return negative values: -75=Left, -77=Right, -72=Up, -80=Down, -71=Home, -79=End, -73=PageUp, -81=PageDown, -82=Insert, -83=Delete. Function keys: F1=-59 through F12=-70. After reading a key, it is cleared from the buffer.

Example

Example.bam
; No example implemented yet