TriggerPressed

Availability All terminals
Description This function returns the current state of the trigger key.
Syntax int TriggerPressed( void );
Arguments None
Returns
>= 1 The trigger key is pressed down.
0 The trigger key is not pressed down.
Remarks When the trigger key is pressed down this event is interpreted as a key stroke.
The key stroke is placed in the keyboard buffer as TRIGGER_KEY, which can be returned by the function getchar()
Example
// This example will sound the buzzer when the trigger key is being pressed

#include <stdio.h>
#include "lib.h"

void main( void )
{    
    for(;;)
    {
        printf("\nPress any key!");
        if( TriggerPressed() )
            Sound( TSTANDARD, VHIGH, SMEDIUM, 0);
        if( DownPressed() )
            Sound( TSTANDARD, VHIGH, SLOW, 0);
        Idle();
    }
}