Class Rubygame::JoyDownEvent
In: lib/rubygame/event.rb
Parent: Rubygame::Event

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.

Methods

new  

Attributes

button  [RW] 
joynum  [RW] 

Public Class methods

[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

[Validate]