IrrKeyEventAvailable

section index

## NAME

IrrKeyEventAvailable - Determine if a key event is available

## SYNOPSIS

IrrKeyEventAvailable()

## INPUTS

## FUNCTION

Find out if there is a key event ready to be Read. Returns #True If there is an event available. (You have to start/init Irrlicht with the IrrStart() and set the EventReceiver on !)

## EXAMPLE

       ; while there are key events waiting to be processed
       While IrrKeyEventAvailable()

           ; read the key event out. the key event has three parameters the key
           ; scan code, the direction of the key and flags that indicate whether
           ; the control key or the shift keys were also pressed
           *KeyEvent.IRR_KEY_EVENT = IrrReadKeyEvent()

           ; arbitrate based on the key that was pressed
           Select *KeyEvent\key
           ; .. now check the Key and start the action ...
           EndSelect

       Wend

## RESULT

#True, if there is a Key-Event available