feat(config): add gamepad_driver option (#5653)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-09-08 19:27:07 -04:00
1 parent c53f97ecdd
commit f7e550d4ab
21 files changed
+817 -226

No files matched your search

+8 -1
View File
@@ -15,6 +15,9 @@
// lib includes
#include <rs.h>
#ifdef _WIN32
#include <libvirtualhid/license.hpp>
#endif
// local includes
#include "confighttp.h"
@@ -240,6 +243,10 @@ int main(int argc, char *argv[]) {
return fn->second(argv[0], config::sunshine.cmd.argc, config::sunshine.cmd.argv);
}
#ifdef _WIN32
config::select_all_gamepad_drivers_if_licensed(lvh::get_license_status().license.licensed());
#endif
// Adding guard here first as it also performs recovery after crash,
// otherwise people could theoretically end up without display output.
// It also should be destroyed before forced shutdown to expedite the cleanup.
@@ -403,7 +410,7 @@ int main(int argc, char *argv[]) {
reed_solomon_init();
auto input_deinit_guard = input::init();
if (input::probe_gamepads()) {
if (config::input.controller && input::probe_gamepads()) {
BOOST_LOG(warning) << "No gamepad input is available"sv;
}