Key_Hit

Key_Hit is a function that returns true if a key has been pressed in the RaptorGraph window since the last call to Get_Key (or since the window was created if Get_Key has not yet been called).  This is often used to test whether or not to call Get_Key.

 

Notes:  A graphics window must be open when Key_Hit is called or a run-time error will occur.  If the RaptorGraph window is not on top, the user may have to click on it once before it will respond to user keystrokes.

 

Example: