Difference between revisions of "Getkey"

From OpenEUO
Jump to: navigation, search
Line 1: Line 1:
 
  local bpressed = getkey(str)
 
  local bpressed = getkey(str)
Returns a boolean based upon whether a key or key combination as specified by the string str is depressed or not.  TODO: list the valid key names/combos.
+
Returns a boolean based upon whether a key or key combination as specified by the string str is depressed or not.  The key-specifier string str can contain A-Z, 0-9, F1-F12 and ESC, BACK, TAB, ENTER, PAUSE, CAPSLOCK, SPACE, PGDN, PGUP, END, HOME, LEFT, RIGHT, UP, DOWN, PRNSCR, INSERT, DELETE, NUMLOCK, SCROLLLOCK, CTRL, ALT, or SHIFT.

Revision as of 18:19, 8 October 2010

local bpressed = getkey(str)

Returns a boolean based upon whether a key or key combination as specified by the string str is depressed or not. The key-specifier string str can contain A-Z, 0-9, F1-F12 and ESC, BACK, TAB, ENTER, PAUSE, CAPSLOCK, SPACE, PGDN, PGUP, END, HOME, LEFT, RIGHT, UP, DOWN, PRNSCR, INSERT, DELETE, NUMLOCK, SCROLLLOCK, CTRL, ALT, or SHIFT.