aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/citra_qt/config/controller_config.hxx
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-04-08 19:25:03 -0400
committerGravatar bunnei <ericbunnie@gmail.com>2014-04-08 19:25:03 -0400
commit63e46abdb8764bc97e91bae862c8d461e61b1965 (patch)
treee73f4aa25d7b4015a265e7bbfb6004dab7561027 /src/citra_qt/config/controller_config.hxx
parent03c245345e1f319da5007c15019ed54432029fb8 (diff)
got rid of 'src' folders in each sub-project
Diffstat (limited to 'src/citra_qt/config/controller_config.hxx')
-rw-r--r--src/citra_qt/config/controller_config.hxx52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/citra_qt/config/controller_config.hxx b/src/citra_qt/config/controller_config.hxx
new file mode 100644
index 00000000..9ff86a11
--- /dev/null
+++ b/src/citra_qt/config/controller_config.hxx
@@ -0,0 +1,52 @@
+#ifndef _CONTROLLER_CONFIG_HXX_
+#define _CONTROLLER_CONFIG_HXX_
+
+#include <QDialog>
+
+#include "ui_controller_config.h"
+
+/* TODO(bunnei): ImplementMe
+
+#include "config.h"
+
+class GControllerConfig : public QWidget
+{
+ Q_OBJECT
+
+public:
+ GControllerConfig(common::Config::ControllerPort* initial_config, QWidget* parent = NULL);
+
+ const common::Config::ControllerPort& GetControllerConfig(int index) const { return config[index]; }
+
+signals:
+ void ActivePortChanged(const common::Config::ControllerPort&);
+
+public slots:
+ void OnKeyConfigChanged(common::Config::Control id, int key, const QString& name);
+
+private:
+ int GetActiveController();
+ bool InputSourceJoypad();
+
+ Ui::ControllerConfig ui;
+ common::Config::ControllerPort config[4];
+};
+
+class GControllerConfigDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ GControllerConfigDialog(common::Config::ControllerPort* controller_ports, QWidget* parent = NULL);
+
+public slots:
+ void EnableChanges();
+
+private:
+ GControllerConfig* config_widget;
+ common::Config::ControllerPort* config_ptr;
+};
+
+*/
+
+#endif // _CONTROLLER_CONFIG_HXX_