/* 
 *  call-seq:
 *    index  ->  Integer
 *
 *  Returns the index number of the Joystick, i.e. the identifier number of the
 *  joystick that this interface controls. This is the same number that was
 *  given to #new().
 */
VALUE rbgm_joystick_index( VALUE self )
{
        SDL_Joystick *joy;

        Data_Get_Struct(self,SDL_Joystick,joy);
        return INT2FIX(SDL_JoystickIndex(joy));
}