inkey_active

This variable indicates whether the inkey() or inchar() function is active and waits for keyboard input.

Range:

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

Type:

var

Remarks:

The inkey() / inchar() function can be terminated prematurely by setting this variable to 0.

Example:

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

...	
on_mouseleft = entry_stop;

See also:

inkey

► latest version online