pub fn mapping_string(&self) -> Option<String> {
    let ptr = unsafe { SDL_GameControllerMapping(self.ptr) };
    if ptr.is_null() {
      None
    } else {
      unsafe {
        let out = Some(gather_string(ptr));
        SDL_free(ptr as *mut _);
        out
      }
    }
  }
/// Obtains the mapping string, if available.
Obtains the mapping string, if available.
Obtains the mapping string if available .
pub fn mapping_string(&self) -> Option<String> {
    let ptr = unsafe { SDL_GameControllerMapping(self.ptr) };
    if ptr.is_null() {
      None
    } else {
      unsafe {
        let out = Some(gather_string(ptr));
        SDL_free(ptr as *mut _);
        out
      }
    }
  }
pub fn mapping_string ( & self ) -> Option < String > { let ptr = unsafe { SDL_GameControllerMapping ( self . ptr ) } ; if ptr . is_null ( ) { None } else { unsafe { let out = Some ( gather_string ( ptr ) ) ; SDL_free ( ptr as * mut _ ) ; out } } }
Obtains the mapping string, if available.
Obtains the mapping string if available .
&self
&self