Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.
Swift apple-siliconcustom-formathomebrewiosipaipadipadosiphonemetalnative-portnintendo-switchnxnativeromfsswitch-games
Merge remote-tracking branch 'origin/main' into fix/ios-gamepad-ui-events
Haseenessse9cdc801aa8c
diff --cc frontend-ios/Sources/ShellHost/ShellHostModel.swiftindex d152fcd1,a542fff1..db4414ce--- a/frontend-ios/Sources/ShellHost/ShellHostModel.swift+++ b/frontend-ios/Sources/ShellHost/ShellHostModel.swift@@@ -504,10 -516,9 +516,11 @@@ public struct ShellHostConfig: Sendabl/// Starts reading GameController: the connected controllers become `controllers`, their buttons `input`.public func startControllers() {adapter.onInput = { [weak self] action, device in- guard let self else { return }+ guard let self, !self.launchingGame else { return }- self.input = ShellInput(sequence: (self.input?.sequence ?? 0) + 1, action: action, device: device)+ self.input.append(action, device: device)}++ // Releases go on while a game launches: a button pressed before it still comes up for the echo window.+ adapter.onRelease = { [weak self] action, device in self?.input.append(action, device: device, released: true) }adapter.onControllersChange = { [weak self] connected inself?.controllers = connected.map(Self.info(for:))}