# File lib/rubygame/joystick.rb, line 122
  def initialize( index )
    @struct = SDL.JoystickOpen( index )
    if( @struct.pointer.null? )
      raise( Rubygame::SDLError, "Could not open joystick %d: %s"%
             [index, SDL.GetError()] )
    end
  end