feat(macos): add gamepad support using libvirtualhid (#5807)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-09-27 16:20:34 -04:00
1 parent c69d370c35
commit 8fc40974c9
34 files changed
+993 -296

No files matched your search

+3 -1
View File
@@ -501,9 +501,11 @@ int main(int argc, char *argv[]) {
if (tray_is_enabled && config::sunshine.system_tray) {
BOOST_LOG(info) << "Starting system tray"sv;
#ifdef _WIN32
#if defined(_WIN32) || defined(__APPLE__)
system_tray::prepare_tray_virtualhid_license();
system_tray::prepare_tray_virtualhid_driver();
#endif
#ifdef _WIN32
// TODO: Windows has a weird bug where when running as a service and on the first Windows boot,
// the tray icon would not appear even though Sunshine is running correctly otherwise.
// Restarting the service would allow the icon to appear normally.