mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 13:37:56 +00:00
Mac: Detect the d-pad and pause buttons on Steelseries MFi gamepads (bug #3124.)
This commit is contained in:
@@ -317,6 +317,10 @@ UIKit_DestroyWindow(_THIS, SDL_Window * window)
|
||||
[view setSDLWindow:NULL];
|
||||
}
|
||||
|
||||
/* iOS may still hold a reference to the window after we release it.
|
||||
* We want to make sure the SDL view controller isn't accessed in
|
||||
* that case, because it would contain an invalid pointer to the old
|
||||
* SDL window. */
|
||||
data.uiwindow.rootViewController = nil;
|
||||
data.uiwindow.hidden = YES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user