Method: Processing::Context#keyPressed

Defined in:
lib/processing/context.rb

#keyPressed(&block) ⇒ Boolean

Defines keyPressed block.

Returns:

  • (Boolean)

    is any key pressed or not

See Also:



239
240
241
242
# File 'lib/processing/context.rb', line 239

def keyPressed(&block)
  @keyPressedBlock__ = block if block
  keyIsPressed
end