Debian Codegraph @

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

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