Class: Ruby2D::Window::GamepadEvents::GamepadConnectData

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

Overview

Internal dispatch structs for filter matching. Never exposed to user code — handlers receive unpacked args (gamepad / button / axis / value), not the struct.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gamepadObject

Returns the value of attribute gamepad

Returns:

  • (Object)

    the current value of gamepad



17
18
19
# File 'lib/ruby2d/window/gamepad_events.rb', line 17

def gamepad
  @gamepad
end

Instance Method Details

#gamepad?(other) ⇒ Boolean

Returns:

  • (Boolean)


18
# File 'lib/ruby2d/window/gamepad_events.rb', line 18

def gamepad?(other) = gamepad.equal?(other)