Method: Processing::Context#keyIsDown

Defined in:
lib/processing/context.rb

#keyIsDown(keyCode) ⇒ Boolean

Returns whether or not the key is currently pressed.

Parameters:

  • keyCode (Numeric)

    code for the key

Returns:

  • (Boolean)

    is the key pressed or not

See Also:



727
728
729
# File 'lib/processing/context.rb', line 727

def keyIsDown(keyCode)
  @keysPressed__.include? keyCode
end