Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Controls: the controller lists as wide as the keyboard rows, so no label is cut

v0lumehiec36d4044a21
diff --git a/frontend/Sources/NSPortBuilder/Controls.swift b/frontend/Sources/NSPortBuilder/Controls.swift
index 6e7cac33..e0c89acf 100644
--- a/frontend/Sources/NSPortBuilder/Controls.swift
+++ b/frontend/Sources/NSPortBuilder/Controls.swift
@@ -207,7 +207,7 @@ struct ControlsView: View {
line(m.t("controls.fn." + button)) {
LauncherMenuPicker(options: ControlLayout.buttons.map { (value: $0, label: m.t("controls.fn." + $0)) } + [(value: "none", label: m.t("controls.none"))],
selection: layout.sends(button), fill: true) { layout.setSends(button, $0) }
- .frame(width: 140)
+ .frame(width: 168) // the keyboard rows' width (× and key field), and "Right stick press" fits
}
}