mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
ControllerInterface: replace Reinitialize with RefreshDevices
The SDL backend crashes when you close a joystick after SDL_Quit has been called. Some backends don't need to be shutdown and re-initialized everytime, we can just ask to enumerate devices again.
This commit is contained in:
@ -46,7 +46,7 @@ namespace ciface
|
||||
namespace XInput2
|
||||
{
|
||||
// This function will add zero or more KeyboardMouse objects to devices.
|
||||
void Init(void* const hwnd)
|
||||
void PopulateDevices(void* const hwnd)
|
||||
{
|
||||
Display* dpy = XOpenDisplay(nullptr);
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace ciface
|
||||
{
|
||||
namespace XInput2
|
||||
{
|
||||
void Init(void* const hwnd);
|
||||
void PopulateDevices(void* const hwnd);
|
||||
|
||||
class KeyboardMouse : public Core::Device
|
||||
{
|
||||
|
Reference in New Issue
Block a user