mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-12 09:09:12 +01:00
3e69d066f5
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.
23 lines
534 B
Plaintext
23 lines
534 B
Plaintext
// Copyright 2016 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "InputCommon/ControllerInterface/Quartz/Quartz.h"
|
|
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
|
#include "InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.h"
|
|
|
|
namespace ciface
|
|
{
|
|
namespace Quartz
|
|
{
|
|
void PopulateDevices(void* window)
|
|
{
|
|
g_controller_interface.AddDevice(std::make_shared<KeyboardAndMouse>(window));
|
|
}
|
|
|
|
void DeInit()
|
|
{
|
|
}
|
|
} // namespace Quartz
|
|
} // namespace ciface
|