Supported Browsers Home   
EVT_halt Previous   
EVT_joyIsPresent Next   
External Functions Up   

EVT_isKeyDown

Determines if a specified key is currently down.

Declaration

ibool EVTAPI EVT_isKeyDown(
    uchar scanCode)

Prototype In

event.h

Parameters

scanCode

Scan code to test

 

Return Value

True of the specified key is currently held down.

Description

This function determines if a specified key is currently down at the time that the call is made. You simply need to pass in the scan code of the key that you wish to test, and the MGL will tell you if it is currently down or not. The MGL does this by keeping track of the up and down state of all the keys.

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com