Class: Ruby2D::Window::KeyEvent

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

Instance Attribute Summary collapse

Instance Attribute Details

#key ⇒ Object

Returns the value of attribute key

Returns:

  • (Object) —

    the current value of key



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

def key
  @key
end

#type ⇒ Object

Returns the value of attribute type

Returns:

  • (Object) —

    the current value of type



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

def type
  @type
end