mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt/Mapping: Implement Microphone widget
This commit is contained in:
45
Source/Core/DolphinQt2/Config/Mapping/GCMicrophone.cpp
Normal file
45
Source/Core/DolphinQt2/Config/Mapping/GCMicrophone.cpp
Normal file
@ -0,0 +1,45 @@
|
||||
// Copyright 2018 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <QFormLayout>
|
||||
#include <QGroupBox>
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "DolphinQt2/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();
|
||||
}
|
Reference in New Issue
Block a user