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

Indicates that a Joystick trackball was moved.

This event has these attributes:

joynum:the identifier number of the affected Joystick.
ball:the identifier number of the trackball.
rel:the relative movement of the trackball, [x,y].

Methods

new  

Attributes

ball  [RW] 
joynum  [RW] 
rel  [RW] 

Public Class methods

[Source]

# File lib/rubygame/event.rb, line 336
                def initialize(joy,ball,rel)
                        # eventually, joy could be int OR a Rubygame::Joystick instance,
                        # which would be stored as joy or maybe joyinstance?
                        @joynum = joy
                        @ball, @rel = ball, rel
                end

[Validate]