Module function reference

key_down

A reference entry for key_down

Module function · Graphics

key_down (number window, string key) ⇒ boolean

YASS
if(Graphics::key_down($window, "SPACE"))
  print("Space is pressed")
end if

Returns whether a key is currently held in the graphics window.