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.
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "DolphinQt/Config/Mapping/HotkeyControllerProfile.h"
|
|
|
|
#include <QGridLayout>
|
|
#include <QGroupBox>
|
|
|
|
#include "Core/HotkeyManager.h"
|
|
|
|
HotkeyControllerProfile::HotkeyControllerProfile(MappingWindow* window) : MappingWidget(window)
|
|
{
|
|
CreateMainLayout();
|
|
}
|
|
|
|
void HotkeyControllerProfile::CreateMainLayout()
|
|
{
|
|
const auto main_layout = new QGridLayout;
|
|
|
|
main_layout->addWidget(
|
|
CreateGroupBox(tr("Wii Remote %1").arg(1),
|
|
HotkeyManagerEmu::GetHotkeyGroup(HKGP_CONTROLLER_PROFILE_1)),
|
|
0, 0);
|
|
|
|
main_layout->addWidget(
|
|
CreateGroupBox(tr("Wii Remote %1").arg(2),
|
|
HotkeyManagerEmu::GetHotkeyGroup(HKGP_CONTROLLER_PROFILE_2)),
|
|
0, 1);
|
|
|
|
main_layout->addWidget(
|
|
CreateGroupBox(tr("Wii Remote %1").arg(3),
|
|
HotkeyManagerEmu::GetHotkeyGroup(HKGP_CONTROLLER_PROFILE_3)),
|
|
1, 0);
|
|
|
|
main_layout->addWidget(
|
|
CreateGroupBox(tr("Wii Remote %1").arg(4),
|
|
HotkeyManagerEmu::GetHotkeyGroup(HKGP_CONTROLLER_PROFILE_4)),
|
|
1, 1);
|
|
|
|
setLayout(main_layout);
|
|
}
|
|
|
|
InputConfig* HotkeyControllerProfile::GetConfig()
|
|
{
|
|
return HotkeyManagerEmu::GetConfig();
|
|
}
|
|
|
|
void HotkeyControllerProfile::LoadSettings()
|
|
{
|
|
HotkeyManagerEmu::LoadConfig();
|
|
}
|
|
|
|
void HotkeyControllerProfile::SaveSettings()
|
|
{
|
|
HotkeyManagerEmu::GetConfig()->SaveConfig();
|
|
}
|