Add 'Enable Controller Input' checkbox to TAS dialogs

When disabled only inputs from TAS dialog are used.
When enabled inputs from TAS dialog are used, except when a change in
input is detected from a real controller, in this case the TAS value is
replaced with the real controller value.
This commit is contained in:
Rukai
2018-07-07 15:51:34 +10:00
parent 3d1a7737d8
commit b94262ec33
10 changed files with 403 additions and 289 deletions

View File

@ -4,15 +4,14 @@
#pragma once
#include <QDialog>
#include "Common/CommonTypes.h"
#include "DolphinQt/TAS/TASInputWindow.h"
class QCheckBox;
class QGroupBox;
class QSpinBox;
struct GCPadStatus;
class GCTASInputWindow : public QDialog
class GCTASInputWindow : public TASInputWindow
{
Q_OBJECT
public:
@ -38,4 +37,8 @@ private:
QSpinBox* m_y_main_stick_value;
QSpinBox* m_x_c_stick_value;
QSpinBox* m_y_c_stick_value;
QGroupBox* m_main_stick_box;
QGroupBox* m_c_stick_box;
QGroupBox* m_triggers_box;
QGroupBox* m_buttons_box;
};