2017-05-20 15:53:17 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-05-20 15:53:17 +00:00
|
|
|
|
2017-07-26 20:31:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-07-06 22:40:15 +00:00
|
|
|
#include "DolphinQt/Config/Mapping/MappingWidget.h"
|
2017-05-20 15:53:17 +00:00
|
|
|
|
2019-04-27 15:51:57 +00:00
|
|
|
#include "Core/HW/WiimoteEmu/ExtensionPort.h"
|
|
|
|
|
2017-05-20 15:53:17 +00:00
|
|
|
class QGroupBox;
|
|
|
|
class QHBoxLayout;
|
|
|
|
|
|
|
|
class WiimoteEmuExtension final : public MappingWidget
|
|
|
|
{
|
2018-05-13 20:16:20 +00:00
|
|
|
Q_OBJECT
|
2017-05-20 15:53:17 +00:00
|
|
|
public:
|
|
|
|
explicit WiimoteEmuExtension(MappingWindow* window);
|
|
|
|
|
|
|
|
InputConfig* GetConfig() override;
|
|
|
|
|
2019-04-27 15:51:57 +00:00
|
|
|
void ChangeExtensionType(u32 type);
|
2017-05-20 15:53:17 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void LoadSettings() override;
|
|
|
|
void SaveSettings() override;
|
|
|
|
|
|
|
|
void CreateClassicLayout();
|
|
|
|
void CreateDrumsLayout();
|
|
|
|
void CreateGuitarLayout();
|
|
|
|
void CreateNoneLayout();
|
|
|
|
void CreateNunchukLayout();
|
|
|
|
void CreateTurntableLayout();
|
2018-12-15 01:53:20 +00:00
|
|
|
void CreateUDrawTabletLayout();
|
2019-05-04 19:37:15 +00:00
|
|
|
void CreateDrawsomeTabletLayout();
|
2019-02-26 01:52:01 +00:00
|
|
|
void CreateTaTaConLayout();
|
2022-09-10 18:58:52 +00:00
|
|
|
void CreateShinkansenLayout();
|
2017-05-20 15:53:17 +00:00
|
|
|
void CreateMainLayout();
|
|
|
|
|
|
|
|
// Main
|
|
|
|
QHBoxLayout* m_main_layout;
|
|
|
|
QGroupBox* m_classic_box;
|
|
|
|
QGroupBox* m_drums_box;
|
|
|
|
QGroupBox* m_guitar_box;
|
|
|
|
QGroupBox* m_none_box;
|
|
|
|
QGroupBox* m_nunchuk_box;
|
|
|
|
QGroupBox* m_turntable_box;
|
2018-12-15 01:53:20 +00:00
|
|
|
QGroupBox* m_udraw_tablet_box;
|
2019-05-04 19:37:15 +00:00
|
|
|
QGroupBox* m_drawsome_tablet_box;
|
2019-02-26 01:52:01 +00:00
|
|
|
QGroupBox* m_tatacon_box;
|
2022-09-10 18:58:52 +00:00
|
|
|
QGroupBox* m_shinkansen_box;
|
2017-05-20 15:53:17 +00:00
|
|
|
};
|