Motion Input: Add nunchuk support.

This commit is contained in:
rlnilsen
2019-11-04 04:19:33 +01:00
parent 15fc71cfcf
commit 965781ea9d
12 changed files with 268 additions and 16 deletions

View File

@ -50,6 +50,7 @@ public:
int GetPort() const;
ControllerEmu::EmulatedController* GetController() const;
bool IsMappingAllDevices() const;
void ShowExtensionMotionTabs(bool show);
signals:
// Emitted when config has changed so widgets can update to reflect the change.
@ -66,7 +67,7 @@ private:
void CreateMainLayout();
void ConnectWidgets();
void AddWidget(const QString& name, QWidget* widget);
QWidget* AddWidget(const QString& name, QWidget* widget);
void RefreshDevices();
@ -108,6 +109,10 @@ private:
QPushButton* m_reset_clear;
QTabWidget* m_tab_widget;
QWidget* m_extension_motion_input_tab;
QWidget* m_extension_motion_simulation_tab;
const QString EXTENSION_MOTION_INPUT_TAB_NAME = tr("Extension Motion Input");
const QString EXTENSION_MOTION_SIMULATION_TAB_NAME = tr("Extension Motion Simulation");
Type m_mapping_type;
const int m_port;