class Rubygame::JoyBallEvent
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].
Attributes
ball[RW]
joynum[RW]
rel[RW]
Public Class Methods
new(joy,ball,rel)
click to toggle 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