inkey_active

This variable indicates whether the inkey() or inchar() function is active and await keyboard input. The keyboard input can be terminated prematurely by setting this variable to 0 through another function.

Range:

2 - inchar() is active.
1 - inkey() is active.
0 - no keyboard function active.

Type:

var

Example:

function entry_stop()
{
  inkey_active = 0; // terminate inkey instruction
}

...	
on_mouseleft = entry_stop;

See also:

inkey

► latest version online