Skip to content

Commit

Permalink
config(apple): support trackpad on macOS 13
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Sep 17, 2022
1 parent 5df1515 commit 6d66612
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Configuration/UTMAppleConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ extension UTMAppleConfiguration {
// add remaining devices
try virtualization.fillVZConfiguration(vzconfig)
#if arch(arm64)
if #available(macOS 13, *), virtualization.hasPointer && system.boot.operatingSystem == .macOS {
// add a trackpad device
vzconfig.pointingDevices.insert(VZMacTrackpadConfiguration(), at: 0)
}
if #available(macOS 12, *), system.boot.operatingSystem == .macOS {
let graphics = VZMacGraphicsDeviceConfiguration()
graphics.displays = displays.map({ display in
Expand Down

0 comments on commit 6d66612

Please sign in to comment.