Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

Test controllers… in an environment's More menu opens Wine's Game Controllers panel (joy.cpl) in that environment: every joystick, gamepad, yoke or wheel Wine sees there, with a live test of its buttons and axes. A player whose game shows only mouse and keyboard can tell whether the device reaches Wine at all, where highball-db#574 took a diagnosis to learn that the arm64 engines before r6 started no controller bus. Checked on an M1 Pro with macOS 27.0: the same command through the CLI on engine r6 opens the panel, winebus starts its SDL, UDEV and IOHID buses and passes over the keyboard and trackpad as non-joysticks; HighballApp builds.

Gauthier Piarrettebf15d1778204
diff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swift
index b1652bf..f92a328 100644
--- a/Sources/HighballApp/AppState.swift
+++ b/Sources/HighballApp/AppState.swift
@@ -2028,6 +2028,19 @@ final class AppState {
}
}
+ /// Wine's Game Controllers panel (joy.cpl) for an environment: every joystick, gamepad, yoke or wheel Wine sees
+ /// there, with a live test of its buttons and axes. A player whose game shows only mouse and keyboard can tell
+ /// whether the device reaches Wine at all, where highball-db#574 took a diagnosis to learn that the arm64 engines
+ /// before r6 started no controller bus.
+ func openControllerTest(in bottle: Bottle) {
+ guard let engine = engine(for: bottle) else { return }
+ let runner = WineRunner(paths: paths, engine: engine, bottle: bottle)
+ appendLog("\(bottle.name): opening Game Controllers")
+ Task.detached {
+ _ = try? await runner.run(["control", "joy.cpl"], renderer: .wined3d, label: "joy.cpl")
+ }
+ }
+
// MARK: Install funnel (UX plan 0.7)
/// Local only. Nothing leaves the Mac unless the person reads the aggregate and sends it.
diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swift
index 79a35af..2b5ff50 100644
--- a/Sources/HighballApp/BottleView.swift
+++ b/Sources/HighballApp/BottleView.swift
@@ -65,6 +65,7 @@ struct BottleView: View {
Menu {
Button(L("Show the Windows drive")) { NSWorkspace.shared.open(bottle.driveC) }
Button(L("Uninstall Windows programs…")) { state.openUninstaller(in: bottle) }
+ Button(L("Test controllers…")) { state.openControllerTest(in: bottle) }
Button(L("Stop all processes")) { state.killBottle(bottle) }
} label: { Label(L("More"), systemImage: "ellipsis.circle") }
Spacer()
diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swift
index af85076..b0a9945 100644
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@ -349,6 +349,7 @@ enum L10n {
"Highball's Wine engine is Intel code and needs Rosetta, Apple's translation layer. A macOS update can remove it. Highball can install it now, or run in Terminal: softwareupdate --install-rosetta --agree-to-license": "Le moteur Wine de Highball est du code Intel et a besoin de Rosetta, la couche de traduction d'Apple. Une mise à jour de macOS peut la retirer. Highball peut l'installer maintenant, ou lancez dans le Terminal : softwareupdate --install-rosetta --agree-to-license",
"Moves this game's Mac app in ~/Applications/Highball to the Trash.": "Place l’app Mac de ce jeu (dans ~/Applications/Highball) dans la corbeille.",
"Uninstall Windows programs…": "Désinstaller des programmes Windows…",
+ "Test controllers…": "Tester les manettes…",
"Opens Windows' Add/Remove Programs for this environment, for programs you installed into it.": "Ouvre Ajout/Suppression de programmes de Windows pour cet environnement, pour les programmes que vous y avez installés.",
"Steam's first start got stuck; restarting it": "Le premier démarrage de Steam s’est bloqué ; on le relance",
"That launcher link did not come from one of your Highball apps.": "Ce lien de lanceur ne vient pas d’une de vos apps Highball.",