2018-01-04 18:38:09 +00:00
|
|
|
// Copyright 2018 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-01-04 18:38:09 +00:00
|
|
|
|
2021-12-10 02:22:16 +00:00
|
|
|
#include "DolphinQt/Config/Mapping/GCMicrophone.h"
|
|
|
|
|
2018-01-04 18:38:09 +00:00
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QHBoxLayout>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
#include "InputCommon/InputConfig.h"
|
|
|
|
|
|
|
|
#include "Core/HW/GCPad.h"
|
|
|
|
#include "Core/HW/GCPadEmu.h"
|
|
|
|
|
|
|
|
GCMicrophone::GCMicrophone(MappingWindow* window) : MappingWidget(window)
|
|
|
|
{
|
|
|
|
CreateMainLayout();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GCMicrophone::CreateMainLayout()
|
|
|
|
{
|
|
|
|
m_main_layout = new QHBoxLayout();
|
|
|
|
|
|
|
|
m_main_layout->addWidget(
|
|
|
|
CreateGroupBox(tr("Microphone"), Pad::GetGroup(GetPort(), PadGroup::Mic)));
|
|
|
|
|
|
|
|
setLayout(m_main_layout);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GCMicrophone::LoadSettings()
|
|
|
|
{
|
|
|
|
Pad::LoadConfig();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GCMicrophone::SaveSettings()
|
|
|
|
{
|
|
|
|
Pad::GetConfig()->SaveConfig();
|
|
|
|
}
|
|
|
|
|
|
|
|
InputConfig* GCMicrophone::GetConfig()
|
|
|
|
{
|
|
|
|
return Pad::GetConfig();
|
|
|
|
}
|