mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
e149ad4f0a
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
45 lines
852 B
C++
45 lines
852 B
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <QFormLayout>
|
|
#include <QGroupBox>
|
|
#include <QHBoxLayout>
|
|
#include <QVBoxLayout>
|
|
|
|
#include "DolphinQt/Config/Mapping/GCMicrophone.h"
|
|
|
|
#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();
|
|
}
|