2018-04-14 04:51:32 +00:00
|
|
|
// 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();
|
2018-04-14 04:51:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void HotkeyControllerProfile::CreateMainLayout()
|
|
|
|
{
|
2018-05-24 03:20:58 +00:00
|
|
|
m_main_layout = new QHBoxLayout();
|
2018-04-14 04:51:32 +00:00
|
|
|
|
2018-05-24 03:20:58 +00:00
|
|
|
m_main_layout->addWidget(CreateGroupBox(
|
|
|
|
tr("Controller Profile"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_CONTROLLER_PROFILE)));
|
2018-04-14 04:51:32 +00:00
|
|
|
|
2018-05-24 03:20:58 +00:00
|
|
|
setLayout(m_main_layout);
|
2018-04-14 04:51:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
InputConfig* HotkeyControllerProfile::GetConfig()
|
|
|
|
{
|
2018-05-24 03:20:58 +00:00
|
|
|
return HotkeyManagerEmu::GetConfig();
|
2018-04-14 04:51:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void HotkeyControllerProfile::LoadSettings()
|
|
|
|
{
|
2018-05-24 03:20:58 +00:00
|
|
|
HotkeyManagerEmu::LoadConfig();
|
2018-04-14 04:51:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void HotkeyControllerProfile::SaveSettings()
|
|
|
|
{
|
2018-05-24 03:20:58 +00:00
|
|
|
HotkeyManagerEmu::GetConfig()->SaveConfig();
|
2018-04-14 04:51:32 +00:00
|
|
|
}
|