private static void *__CopyValue(global::SharpSDL.SDL_Joystick.__Internal native) { var ret = Marshal.AllocHGlobal(sizeof(global::SharpSDL.SDL_Joystick.__Internal)); *(global::SharpSDL.SDL_Joystick.__Internal *)ret = native; return(ret.ToPointer()); }
private SDL_Joystick(global::SharpSDL.SDL_Joystick.__Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
internal static global::SharpSDL.SDL_Joystick __CreateInstance(global::SharpSDL.SDL_Joystick.__Internal native, bool skipVTables = false) { return(new global::SharpSDL.SDL_Joystick(native, skipVTables)); }