mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Input: Remove global variables from SDL Input
Changes the interface as well to remove any unique methods that frontends needed to call such as StartJoystickEventHandler by conditionally starting the polling thread only if the frontend hasn't started it already. Additionally, moves all global state into a single SDLState class in order to guarantee that the destructors are called in the proper order
This commit is contained in:
		
							parent
							
								
									bfcc712132
								
							
						
					
					
						commit
						3f4a7f8f58
					
				
					 9 changed files with 213 additions and 810 deletions
				
			
		|  | @ -114,7 +114,6 @@ GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread) | |||
|     setWindowTitle(QString::fromStdString(window_title)); | ||||
| 
 | ||||
|     InputCommon::Init(); | ||||
|     InputCommon::StartJoystickEventHandler(); | ||||
| } | ||||
| 
 | ||||
| GRenderWindow::~GRenderWindow() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue