Difference between revisions of "AMOSi:Key State"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
(Extracted from the AMOSPro V2.00 helpfile)
(No difference)

Revision as of 02:45, 17 November 2007

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"