GCAdapter: Disable the scanning thread when direct connect is disabled
The goal of this commit is to let people who experience driver issues with libusb and windows disable the scanning thread (to avoid mouse issues, keyboard issues, and audio issues). Also disable the rumble setting when the adapter driver is not detected, and don’t do anything if libusb can’t init for some reason.
This commit is contained in:
parent
a12a4520d8
commit
ac8621ccab
|
@ -146,6 +146,7 @@ void Init()
|
|||
if (ret)
|
||||
{
|
||||
ERROR_LOG(SERIALINTERFACE, "libusb_init failed with error: %d", ret);
|
||||
s_libusb_driver_not_supported = true;
|
||||
Shutdown();
|
||||
}
|
||||
else
|
||||
|
|
|
@ -174,6 +174,7 @@ wxStaticBoxSizer* ControllerConfigDiag::CreateGamecubeSizer()
|
|||
m_adapter_status->SetLabelText(_("Driver Not Detected"));
|
||||
gamecube_adapter->Disable();
|
||||
gamecube_adapter->SetValue(false);
|
||||
gamecube_rumble->Disable();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -73,6 +73,10 @@ private:
|
|||
void OnGameCubeAdapter(wxCommandEvent& event)
|
||||
{
|
||||
SConfig::GetInstance().m_GameCubeAdapter = event.IsChecked();
|
||||
if (event.IsChecked())
|
||||
SI_GCAdapter::StartScanThread();
|
||||
else
|
||||
SI_GCAdapter::StopScanThread();
|
||||
event.Skip();
|
||||
}
|
||||
void OnAdapterRumble(wxCommandEvent& event)
|
||||
|
|
Loading…
Reference in New Issue