forked from dolphin-emu/dolphin
		
	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
 |