From c3e9cfe5268f8818f32aad30feb7f2b0a371cd32 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Fri, 12 Aug 2022 19:35:37 -0500 Subject: [PATCH] [iPad] Fixes keyboard controller sometimes using incorrect skin orientation --- Delta/Emulation/GameViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Delta/Emulation/GameViewController.swift b/Delta/Emulation/GameViewController.swift index 2942a75..93c909f 100644 --- a/Delta/Emulation/GameViewController.swift +++ b/Delta/Emulation/GameViewController.swift @@ -346,6 +346,8 @@ extension GameViewController { super.viewWillTransition(to: size, with: coordinator) + guard UIApplication.shared.applicationState != .background else { return } + coordinator.animate(alongsideTransition: { (context) in self.updateControllerSkin() }, completion: nil)