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

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

Methods

new  

Attributes

axis  [RW] 
joynum  [RW] 
value  [RW] 

Public Class methods

[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

[Validate]