/// <summary>Convert a string into a joystick guid</summary> public static global::SharpSDL.JoystickGUID JoystickGetGUIDFromString(string pchGUID) { var __ret = new global::SharpSDL.JoystickGUID.__Internal(); __Internal.JoystickGetGUIDFromString(new IntPtr(&__ret), pchGUID); return(global::SharpSDL.JoystickGUID.__CreateInstance(__ret)); }
/// <summary> /// <para>Return the GUID for the joystick at this index</para> /// <para>This can be called before any joysticks are opened.</para> /// </summary> public static global::SharpSDL.JoystickGUID JoystickGetDeviceGUID(int device_index) { var __ret = new global::SharpSDL.JoystickGUID.__Internal(); __Internal.JoystickGetDeviceGUID(new IntPtr(&__ret), device_index); return(global::SharpSDL.JoystickGUID.__CreateInstance(__ret)); }
private static void *__CopyValue(global::SharpSDL.JoystickGUID.__Internal native) { var ret = Marshal.AllocHGlobal(sizeof(global::SharpSDL.JoystickGUID.__Internal)); *(global::SharpSDL.JoystickGUID.__Internal *)ret = native; return(ret.ToPointer()); }
private JoystickGUID(global::SharpSDL.JoystickGUID.__Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
internal static global::SharpSDL.JoystickGUID __CreateInstance(global::SharpSDL.JoystickGUID.__Internal native, bool skipVTables = false) { return(new global::SharpSDL.JoystickGUID(native, skipVTables)); }