Class: Ruby2D::Window::GamepadEvents::GamepadButtonData
- Inherits:
-
Struct
- Object
- Struct
- Ruby2D::Window::GamepadEvents::GamepadButtonData
- Defined in:
- lib/ruby2d/window/gamepad_events.rb
Instance Attribute Summary collapse
-
#button ⇒ Object
Returns the value of attribute button.
-
#gamepad ⇒ Object
Returns the value of attribute gamepad.
Instance Method Summary collapse
Instance Attribute Details
#button ⇒ Object
Returns the value of attribute button
21 22 23 |
# File 'lib/ruby2d/window/gamepad_events.rb', line 21 def @button end |
#gamepad ⇒ Object
Returns the value of attribute gamepad
21 22 23 |
# File 'lib/ruby2d/window/gamepad_events.rb', line 21 def gamepad @gamepad end |
Instance Method Details
#button?(name) ⇒ Boolean
23 |
# File 'lib/ruby2d/window/gamepad_events.rb', line 23 def (name) = == name |
#gamepad?(other) ⇒ Boolean
22 |
# File 'lib/ruby2d/window/gamepad_events.rb', line 22 def gamepad?(other) = gamepad.equal?(other) |