Debian Codegraph @

Source/Core/DolphinQt/Config/Mapping/HotkeyWii.cpp

raw symbols SCIP
1 // Copyright 2017 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #include "DolphinQt/Config/Mapping/HotkeyWii.h"
5
6 #include <QGroupBox>
7 #include <QHBoxLayout>
8
9 #include "Core/HotkeyManager.h"
10
11 HotkeyWii::HotkeyWii(MappingWindow* window) : MappingWidget(window)
12 {
13 CreateMainLayout();
14 }
15
16 void HotkeyWii::CreateMainLayout()
17 {
18 m_main_layout = new QHBoxLayout();
19
20 m_main_layout->addWidget(CreateGroupBox(tr("Wii"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_WII)));
21
22 setLayout(m_main_layout);
23 }
24
25 InputConfig* HotkeyWii::GetConfig()
26 {
27 return HotkeyManagerEmu::GetConfig();
28 }
29
30 void HotkeyWii::LoadSettings()
31 {
32 HotkeyManagerEmu::LoadConfig();
33 }
34
35 void HotkeyWii::SaveSettings()
36 {
37 HotkeyManagerEmu::GetConfig()->SaveConfig();
38 }