dolphin/Source/Core/DolphinQt/Config/Mapping/HotkeyControllerProfile.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
908 B
C++
Raw Normal View History

// Copyright 2018 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "DolphinQt/Config/Mapping/HotkeyControllerProfile.h"
#include <QGroupBox>
#include <QHBoxLayout>
#include "Core/HotkeyManager.h"
HotkeyControllerProfile::HotkeyControllerProfile(MappingWindow* window) : MappingWidget(window)
{
2018-05-24 03:20:58 +00:00
CreateMainLayout();
}
void HotkeyControllerProfile::CreateMainLayout()
{
2018-05-24 03:20:58 +00:00
m_main_layout = new QHBoxLayout();
2018-05-24 03:20:58 +00:00
m_main_layout->addWidget(CreateGroupBox(
tr("Controller Profile"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_CONTROLLER_PROFILE)));
2018-05-24 03:20:58 +00:00
setLayout(m_main_layout);
}
InputConfig* HotkeyControllerProfile::GetConfig()
{
2018-05-24 03:20:58 +00:00
return HotkeyManagerEmu::GetConfig();
}
void HotkeyControllerProfile::LoadSettings()
{
2018-05-24 03:20:58 +00:00
HotkeyManagerEmu::LoadConfig();
}
void HotkeyControllerProfile::SaveSettings()
{
2018-05-24 03:20:58 +00:00
HotkeyManagerEmu::GetConfig()->SaveConfig();
}