KEYDOWN |
Top Previous Next |
Syntax INT = KEYDOWN(scancode as INT) Description Tests for a keypress. Parameters scancode - A DirectInput raw scancode to test. Return value TRUE if key is currently held down, FALSE if the key is up. Remarks A screen must be open or DirectInput initialized manually before using this function. The DirectInput scan codes are listed in the appendix and differ from their Windows virtual key counterparts. This function is non buffered and will indicate the true up/down state of a key at the time of the call. For ASCII input see the GETKEY function. See Also: GETKEY, Appendix A Example usage IF KEYDOWN(1) |