class Rubygame::JoyDownEvent
Indicates that a Joystick button was pressed.
This event has these attributes:
- joynum
-
the identifier number of the affected Joystick.
- hat
-
the identifier number of the button.
Attributes
joynum[RW]
Public Class Methods
new(joy,button)
click to toggle source
# File lib/rubygame/event.rb, line 377 def initialize(joy,button) # eventually, joy could be int OR a Rubygame::Joystick instance, # which would be stored as joy or maybe joyinstance? @joynum = joy @button = button end