2017-05-20 17:53:17 +02:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
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
|
|
|
|
2019-04-27 10:51:57 -05:00
|
|
|
#include "Core/HW/WiimoteEmu/ExtensionPort.h"
|
|
|
|
|
2017-05-20 17:53:17 +02:00
|
|
|
class QGroupBox;
|
|
|
|
class QHBoxLayout;
|
|
|
|
|
|
|
|
class WiimoteEmuExtension final : public MappingWidget
|
|
|
|
{
|
2018-05-13 16:16:20 -04:00
|
|
|
Q_OBJECT
|
2017-05-20 17:53:17 +02:00
|
|
|
public:
|
|
|
|
explicit WiimoteEmuExtension(MappingWindow* window);
|
|
|
|
|
|
|
|
InputConfig* GetConfig() override;
|
|
|
|
|
2019-04-27 10:51:57 -05:00
|
|
|
void ChangeExtensionType(u32 type);
|
2017-05-20 17:53:17 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
void LoadSettings() override;
|
|
|
|
void SaveSettings() override;
|
|
|
|
|
|
|
|
void CreateClassicLayout();
|
|
|
|
void CreateDrumsLayout();
|
|
|
|
void CreateGuitarLayout();
|
|
|
|
void CreateNoneLayout();
|
|
|
|
void CreateNunchukLayout();
|
|
|
|
void CreateTurntableLayout();
|
2018-12-14 19:53:20 -06:00
|
|
|
void CreateUDrawTabletLayout();
|
2019-05-04 14:37:15 -05:00
|
|
|
void CreateDrawsomeTabletLayout();
|
2019-02-25 19:52:01 -06:00
|
|
|
void CreateTaTaConLayout();
|
2017-05-20 17:53:17 +02: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-14 19:53:20 -06:00
|
|
|
QGroupBox* m_udraw_tablet_box;
|
2019-05-04 14:37:15 -05:00
|
|
|
QGroupBox* m_drawsome_tablet_box;
|
2019-02-25 19:52:01 -06:00
|
|
|
QGroupBox* m_tatacon_box;
|
2017-05-20 17:53:17 +02:00
|
|
|
};
|