public JoystickGUID(global::SharpSDL.JoystickGUID _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::SharpSDL.JoystickGUID.__Internal)); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; *((global::SharpSDL.JoystickGUID.__Internal *)__Instance) = *((global::SharpSDL.JoystickGUID.__Internal *)_0.__Instance); }
/// <summary> /// <para>Return a string representation for this guid. pszGUID must point to at least 33 bytes</para> /// <para>(32 for the string plus a NULL terminator).</para> /// </summary> public static void JoystickGetGUIDString(global::SharpSDL.JoystickGUID guid, sbyte *pszGUID, int cbGUID) { if (ReferenceEquals(guid, null)) { throw new global::System.ArgumentNullException("guid", "Cannot be null because it is passed by value."); } var __arg0 = guid.__Instance; __Internal.JoystickGetGUIDString(__arg0, pszGUID, cbGUID); }
/// <summary>Get a mapping string for a GUID</summary> /// <returns>the mapping string. Must be freed with SDL_free(). Returns NULL if no mapping is available</returns> public static sbyte *GameControllerMappingForGUID(global::SharpSDL.JoystickGUID guid) { if (ReferenceEquals(guid, null)) { throw new global::System.ArgumentNullException("guid", "Cannot be null because it is passed by value."); } var __arg0 = guid.__Instance; var __ret = __Internal.GameControllerMappingForGUID(__arg0); return(__ret); }