diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-06 18:43:08 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-06 18:43:08 +0100 |
commit | 0bf5a0bfc47cebb64dc2740c475a631d6fb13a2f (patch) | |
tree | 3a173741994c239c4cd41727868ef7676acb26e3 /src/citra_qt/config/controller_config.h | |
parent | Merge pull request #417 from kevinhartman/exclusive-tag-fix (diff) | |
parent | citra-qt: Renamed all .hxx headers to .h (diff) | |
download | yuzu-0bf5a0bfc47cebb64dc2740c475a631d6fb13a2f.tar yuzu-0bf5a0bfc47cebb64dc2740c475a631d6fb13a2f.tar.gz yuzu-0bf5a0bfc47cebb64dc2740c475a631d6fb13a2f.tar.bz2 yuzu-0bf5a0bfc47cebb64dc2740c475a631d6fb13a2f.tar.lz yuzu-0bf5a0bfc47cebb64dc2740c475a631d6fb13a2f.tar.xz yuzu-0bf5a0bfc47cebb64dc2740c475a631d6fb13a2f.tar.zst yuzu-0bf5a0bfc47cebb64dc2740c475a631d6fb13a2f.zip |
Diffstat (limited to 'src/citra_qt/config/controller_config.h')
-rw-r--r-- | src/citra_qt/config/controller_config.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/citra_qt/config/controller_config.h b/src/citra_qt/config/controller_config.h new file mode 100644 index 000000000..451593de1 --- /dev/null +++ b/src/citra_qt/config/controller_config.h @@ -0,0 +1,56 @@ +// Copyright 2014 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#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_ |