Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #11845 from jnaidu360/skylanders-portal-hotkey
Add hotkey to open Skylanders and Infinity Menus
- Loading branch information
Showing
10 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| // Copyright 2023 Dolphin Emulator Project | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #include "DolphinQt/Config/Mapping/HotkeyUSBEmu.h" | ||
|
|
||
| #include <QGroupBox> | ||
| #include <QHBoxLayout> | ||
|
|
||
| #include "Core/HotkeyManager.h" | ||
|
|
||
| HotkeyUSBEmu::HotkeyUSBEmu(MappingWindow* window) : MappingWidget(window) | ||
| { | ||
| CreateMainLayout(); | ||
| } | ||
|
|
||
| void HotkeyUSBEmu::CreateMainLayout() | ||
| { | ||
| m_main_layout = new QHBoxLayout(); | ||
|
|
||
| m_main_layout->addWidget( | ||
| CreateGroupBox(tr("USB Device Emulation"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_USB_EMU))); | ||
|
|
||
| setLayout(m_main_layout); | ||
| } | ||
|
|
||
| InputConfig* HotkeyUSBEmu::GetConfig() | ||
| { | ||
| return HotkeyManagerEmu::GetConfig(); | ||
| } | ||
|
|
||
| void HotkeyUSBEmu::LoadSettings() | ||
| { | ||
| HotkeyManagerEmu::LoadConfig(); | ||
| } | ||
|
|
||
| void HotkeyUSBEmu::SaveSettings() | ||
| { | ||
| HotkeyManagerEmu::GetConfig()->SaveConfig(); | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #pragma once | ||
| // Copyright 2023 Dolphin Emulator Project | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "DolphinQt/Config/Mapping/MappingWidget.h" | ||
|
|
||
| class QHBoxLayout; | ||
|
|
||
| class HotkeyUSBEmu final : public MappingWidget | ||
| { | ||
| Q_OBJECT | ||
| public: | ||
| explicit HotkeyUSBEmu(MappingWindow* window); | ||
|
|
||
| InputConfig* GetConfig() override; | ||
|
|
||
| private: | ||
| void LoadSettings() override; | ||
| void SaveSettings() override; | ||
| void CreateMainLayout(); | ||
|
|
||
| // Main | ||
| QHBoxLayout* m_main_layout; | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters