`--suspendable` devices fallback on Ventura host (#605)

Fixes #604
This commit is contained in:
Fedor Korotkov 2023-09-22 07:38:13 -04:00 committed by GitHub
parent 1fd710d00d
commit 6df50e55d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -111,7 +111,8 @@ struct Darwin: PlatformSuspendable {
if #available(macOS 14, *) {
return [VZMacKeyboardConfiguration()]
} else {
return []
// fallback to the regular configuration
return keyboards()
}
}
@ -121,6 +122,11 @@ struct Darwin: PlatformSuspendable {
}
func pointingDevicesSuspendable() -> [VZPointingDeviceConfiguration] {
[VZMacTrackpadConfiguration()]
if #available(macOS 14, *) {
return [VZMacTrackpadConfiguration()]
} else {
// fallback to the regular configuration
return pointingDevices()
}
}
}