dolphin/Source/Core/DolphinQt/Config
Filoppi 83ea16f402 Qt: Fix IOWindow keeping a shared ptr to devices even after them being removed by the ControllerInterface
this prevented some devices from being recreated correctly, as they were exclusive (e.g. DInput Joysticks)

This is achieved by calling Settings::ReleaseDevices(), which releases all the UI devices shared ptrs.
If we are the host (Qt) thread, DevicesChanged() is now called in line, to avoid devices being hanged onto by the UI.
For this, I had to add a method to check whether we are the Host Thread to Qt.

Avoid calling ControllerInterface::RefreshDevices() from the CPU thread if the emulation is running
and we manually refresh devices from Qt, as that is not necessary anymore.

Refactored the way IOWindow lists devices to make it clearer and hold onto disconnected devices.
There were so many issues with the previous code:
-Devices changes would not be reflected until the window was re-opened
-If there was no default device, it would fail to select the device at index 0
-It could have crashed if we had 0 devices
-The default device was not highlighted as such
2021-06-07 11:48:30 +03:00
..
ControllerInterface
Graphics Port dump XFB option to Qt UI. 2021-05-27 12:48:36 +12:00
Mapping Qt: Fix IOWindow keeping a shared ptr to devices even after them being removed by the ControllerInterface 2021-06-07 11:48:30 +03:00
ToolTipControls Add mixed comments to input code, make some tooltip clearer 2021-05-12 18:27:23 +03:00
ARCodeWidget.cpp ARCodeWidget: Take game ID and revision directly instead of through GameFile. 2021-06-06 21:23:17 +02:00
ARCodeWidget.h ARCodeWidget: Take game ID and revision directly instead of through GameFile. 2021-06-06 21:23:17 +02:00
CheatCodeEditor.cpp
CheatCodeEditor.h
CheatWarningWidget.cpp
CheatWarningWidget.h
CommonControllersWidget.cpp
CommonControllersWidget.h
ControllersWindow.cpp
ControllersWindow.h
FilesystemWidget.cpp DiscIO: Move some code from DiscExtractor to new file DiscUtils 2021-03-09 20:34:24 +01:00
FilesystemWidget.h
FreeLookWidget.cpp
FreeLookWidget.h
FreeLookWindow.cpp
FreeLookWindow.h
GameConfigEdit.cpp
GameConfigEdit.h
GameConfigHighlighter.cpp
GameConfigHighlighter.h
GameConfigWidget.cpp
GameConfigWidget.h
GamecubeControllersWidget.cpp
GamecubeControllersWidget.h
GeckoCodeWidget.cpp GeckoCodeWidget: Take game ID and revision directly instead of through GameFile. 2021-06-06 21:25:37 +02:00
GeckoCodeWidget.h GeckoCodeWidget: Take game ID and revision directly instead of through GameFile. 2021-06-06 21:25:37 +02:00
InfoWidget.cpp
InfoWidget.h
LogConfigWidget.cpp
LogConfigWidget.h
LogWidget.cpp
LogWidget.h
NewPatchDialog.cpp
NewPatchDialog.h
PatchesWidget.cpp
PatchesWidget.h
PropertiesDialog.cpp GeckoCodeWidget: Take game ID and revision directly instead of through GameFile. 2021-06-06 21:25:37 +02:00
PropertiesDialog.h
SettingsWindow.cpp
SettingsWindow.h
VerifyWidget.cpp DolphinQt: Disable verify button when emulation is running 2021-04-28 21:58:07 +02:00
VerifyWidget.h DolphinQt: Disable verify button when emulation is running 2021-04-28 21:58:07 +02:00
WiimoteControllersWidget.cpp WiiUtils: Add helper functions to get emulated/real Bluetooth device 2021-04-12 18:16:56 +02:00
WiimoteControllersWidget.h