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