| push_getkey | Function (ROM Call 0x316)

AMS 1.01 or higher | basfunc.h

void push_getkey (void);

Executes TI-Basic 'getKey' function.

push_getkey pushes tke key code of a pressed key to the expression stack. It pushes 0 if no key is pressed. The pushed value is exactly the same as a value returned from the TI-Basic getKey function (it is mainly the same value as returned from ngetchx, but not always: for example, codes for arrow keys are different).

Uses: push_ulong_to_integer, kbhit, ngetchx, off, OSTimerExpired, OSTimerRestart