WAITKEY |
Top Previous Next |
Syntax WAITKEY(OPT keycode as INT) Description Pauses your program and waits for a key to be pressed. Parameters keycode - Optional DirectInput scancode to wait for. Return value None 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. If keycode is not supplied then the function will wait for any key to be pressed. Otherwise the function waits for the the specified key to be pressed. See Also: GETKEY, KEYDOWN, Appendix A Example usage WRITETEXT 10,100,"Press any key to close" |