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