forked from eden-emu/eden
		
	input_common: Eliminate most global state
Abstracts most of the input mechanisms under an InputSubsystem class that is managed by the frontends, eliminating any static constructors and destructors. This gets rid of global accessor functions and also allows the frontends to have a more fine-grained control over the lifecycle of the input subsystem. This also makes it explicit which interfaces rely on the input subsystem instead of making it opaque in the interface functions. All that remains to migrate over is the factories, which can be done in a separate change.
This commit is contained in:
		
							parent
							
								
									3db9a25977
								
							
						
					
					
						commit
						9e1b0af259
					
				
					 25 changed files with 397 additions and 243 deletions
				
			
		|  | @ -7,8 +7,8 @@ | |||
| #include <array> | ||||
| #include <memory> | ||||
| 
 | ||||
| #include <QDialog> | ||||
| #include <QKeyEvent> | ||||
| #include <QWidget> | ||||
| 
 | ||||
| #include "yuzu/configuration/configure_input_advanced.h" | ||||
| #include "yuzu/configuration/configure_input_player.h" | ||||
|  | @ -19,6 +19,10 @@ class QCheckBox; | |||
| class QString; | ||||
| class QTimer; | ||||
| 
 | ||||
| namespace InputCommon { | ||||
| class InputSubsystem; | ||||
| } | ||||
| 
 | ||||
| namespace Ui { | ||||
| class ConfigureInput; | ||||
| } | ||||
|  | @ -32,6 +36,9 @@ public: | |||
|     explicit ConfigureInput(QWidget* parent = nullptr); | ||||
|     ~ConfigureInput() override; | ||||
| 
 | ||||
|     /// Initializes the input dialog with the given input subsystem.
 | ||||
|     void Initialize(InputCommon::InputSubsystem* input_subsystem_); | ||||
| 
 | ||||
|     /// Save all button configurations to settings file.
 | ||||
|     void ApplyConfiguration(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash