From 6bf39e73d010ecb96e4585276b5d9b24597845a0 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Mon, 11 Mar 2024 17:16:40 +0400 Subject: [PATCH] Prefer USB keyboard and screen coordinate pointing devices (#747) --- Sources/tart/Platform/Darwin.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/tart/Platform/Darwin.swift b/Sources/tart/Platform/Darwin.swift index 732342c..f765864 100644 --- a/Sources/tart/Platform/Darwin.swift +++ b/Sources/tart/Platform/Darwin.swift @@ -103,7 +103,7 @@ struct UnsupportedHostOSError: Error, CustomStringConvertible { func keyboards() -> [VZKeyboardConfiguration] { if #available(macOS 14, *) { // Mac keyboard is only supported by guests starting with macOS Ventura - return [VZMacKeyboardConfiguration(), VZUSBKeyboardConfiguration()] + return [VZUSBKeyboardConfiguration(), VZMacKeyboardConfiguration()] } else { return [VZUSBKeyboardConfiguration()] } @@ -120,7 +120,7 @@ struct UnsupportedHostOSError: Error, CustomStringConvertible { func pointingDevices() -> [VZPointingDeviceConfiguration] { // Trackpad is only supported by guests starting with macOS Ventura - [VZMacTrackpadConfiguration(), VZUSBScreenCoordinatePointingDeviceConfiguration()] + [VZUSBScreenCoordinatePointingDeviceConfiguration(), VZMacTrackpadConfiguration()] } func pointingDevicesSuspendable() -> [VZPointingDeviceConfiguration] {