pub fn controller_name(&self, id: JoystickID) -> Option<String> {
    let ptr = unsafe { SDL_GameControllerNameForIndex(id.0) };
    if ptr.is_null() {
      None
    } else {
      unsafe { Some(gather_string(ptr)) }
    }
  }
/// Given a joystick index, attempts to get the Controller name, if any.
Given a joystick index, attempts to get the Controller name, if any.
Given a joystick index attempts to get the Controller name if any .
pub fn controller_name(&self, id: JoystickID) -> Option<String> {
    let ptr = unsafe { SDL_GameControllerNameForIndex(id.0) };
    if ptr.is_null() {
      None
    } else {
      unsafe { Some(gather_string(ptr)) }
    }
  }
pub fn controller_name ( & self , id : JoystickID ) -> Option < String > { let ptr = unsafe { SDL_GameControllerNameForIndex ( id . 0 ) } ; if ptr . is_null ( ) { None } else { unsafe { Some ( gather_string ( ptr ) ) } } }
Given a joystick index, attempts to get the Controller name, if any.
Given a joystick index attempts to get the Controller name if any .
&self
id
JoystickID
&self
id
JoystickID