Class: Ruby2D::Window::KeyEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby2d/window.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def key
  @key
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def type
  @type
end

Instance Method Details

#key?(name) ⇒ Boolean

Returns:

  • (Boolean)


15
# File 'lib/ruby2d/window.rb', line 15

def key?(name) = key == name.to_s.downcase