aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/yuzu/configuration/configure_debug_controller.h
diff options
context:
space:
mode:
authorLioncash <[email protected]>2020-08-27 15:16:47 -0400
committerLioncash <[email protected]>2020-08-27 16:11:17 -0400
commit9e1b0af25907f7a8b960aa5c1e7d931691f40196 (patch)
tree9bfda0b559cb025da3bc65168d28ee78144daa20 /src/yuzu/configuration/configure_debug_controller.h
parent3db9a259771a44278ff34168ba140c2c7815a1cf (diff)
downloadyuzu-android-9e1b0af25907f7a8b960aa5c1e7d931691f40196.tar.gz
yuzu-android-9e1b0af25907f7a8b960aa5c1e7d931691f40196.zip
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.
Diffstat (limited to 'src/yuzu/configuration/configure_debug_controller.h')
-rw-r--r--src/yuzu/configuration/configure_debug_controller.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_debug_controller.h b/src/yuzu/configuration/configure_debug_controller.h
index 36475bbea..34dcf705f 100644
--- a/src/yuzu/configuration/configure_debug_controller.h
+++ b/src/yuzu/configuration/configure_debug_controller.h
@@ -10,6 +10,10 @@
class QPushButton;
+namespace InputCommon {
+class InputSubsystem;
+}
+
namespace Ui {
class ConfigureDebugController;
}
@@ -18,7 +22,8 @@ class ConfigureDebugController : public QDialog {
Q_OBJECT
public:
- explicit ConfigureDebugController(QWidget* parent);
+ explicit ConfigureDebugController(QWidget* parent,
+ InputCommon::InputSubsystem* input_subsystem);
~ConfigureDebugController() override;
void ApplyConfiguration();