2017-05-20 17:53:17 +02:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-05-20 17:53:17 +02:00
|
|
|
|
2017-07-26 16:31:58 -04:00
|
|
|
#pragma once
|
|
|
|
|
2018-07-07 00:40:15 +02:00
|
|
|
#include "DolphinQt/Config/Mapping/MappingWidget.h"
|
2017-05-20 17:53:17 +02:00
|
|
|
|
|
|
|
class QComboBox;
|
2020-01-18 11:19:32 -06:00
|
|
|
class QLabel;
|
2017-05-20 17:53:17 +02:00
|
|
|
class WiimoteEmuExtension;
|
|
|
|
|
|
|
|
class WiimoteEmuGeneral final : public MappingWidget
|
|
|
|
{
|
2018-05-13 16:16:20 -04:00
|
|
|
Q_OBJECT
|
2017-05-20 17:53:17 +02:00
|
|
|
public:
|
|
|
|
explicit WiimoteEmuGeneral(MappingWindow* window, WiimoteEmuExtension* extension);
|
|
|
|
|
|
|
|
InputConfig* GetConfig() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void LoadSettings() override;
|
|
|
|
void SaveSettings() override;
|
|
|
|
void CreateMainLayout();
|
2020-01-18 11:19:32 -06:00
|
|
|
void Connect();
|
|
|
|
|
|
|
|
// Index changed by code/expression.
|
2017-05-20 17:53:17 +02:00
|
|
|
void OnAttachmentChanged(int index);
|
2020-01-18 11:19:32 -06:00
|
|
|
// Selection chosen by user.
|
|
|
|
void OnAttachmentSelected(int index);
|
|
|
|
|
2019-04-27 10:51:57 -05:00
|
|
|
void ConfigChanged();
|
2020-01-18 11:19:32 -06:00
|
|
|
void Update();
|
2017-05-20 17:53:17 +02:00
|
|
|
|
|
|
|
// Extensions
|
|
|
|
QComboBox* m_extension_combo;
|
2020-01-18 11:19:32 -06:00
|
|
|
QLabel* m_extension_combo_dynamic_indicator;
|
2017-05-20 17:53:17 +02:00
|
|
|
|
|
|
|
WiimoteEmuExtension* m_extension_widget;
|
|
|
|
};
|