AMOSi:Key State

From Amiga Coding
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-4/Help_43.AMOS


Tests a specific key to see if it has been pressed by the user. A value of -1 indicates that the key has been hit.


Test=Keystate(scancode)
If Key State(69) Then Print "Escape pressed"