Key.keyNames

From MiniScript Wiki
Revision as of 15:33, 24 March 2020 by 71.226.33.30 (talk) (Created page with "<c>key.keyNames</c> returns a list of all the key names available for use with key.pressed. See also: key.pressed === Usage Notes === This can be used, for example, to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

key.keyNames returns a list of all the key names available for use with key.pressed.

See also: key.pressed

Usage Notes

This can be used, for example, to check all possible inputs, if waiting for the user to press anything to continue, or while configuring their input preferences.

Example

while true
         for n in key.keyNames
	     if key.pressed(n) then print n
	 end for
    end while