Class: Rubygame::JoyUpEvent
Overview
Indicates that a Joystick button was released.
See JoyDownEvent.
Instance Attribute Summary collapse
-
#button ⇒ Object
Returns the value of attribute button.
-
#joynum ⇒ Object
Returns the value of attribute joynum.
Instance Method Summary collapse
-
#initialize(joy, button) ⇒ JoyUpEvent
constructor
A new instance of JoyUpEvent.
Constructor Details
#initialize(joy, button) ⇒ JoyUpEvent
Returns a new instance of JoyUpEvent.
390 391 392 393 394 395 |
# File 'lib/rubygame/event.rb', line 390 def initialize(joy,) # eventually, joy could be int OR a Rubygame::Joystick instance, # which would be stored as joy or maybe joyinstance? @joynum = joy @button = end |
Instance Attribute Details
#button ⇒ Object
Returns the value of attribute button.
389 390 391 |
# File 'lib/rubygame/event.rb', line 389 def @button end |
#joynum ⇒ Object
Returns the value of attribute joynum.
389 390 391 |
# File 'lib/rubygame/event.rb', line 389 def joynum @joynum end |