-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10443 from JosJuice/port-wiimote-source
Port Wiimote source settings to the new config system
- Loading branch information
Showing
17 changed files
with
134 additions
and
172 deletions.
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,30 @@ | ||
// Copyright 2022 Dolphin Emulator Project | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include "Core/Config/WiimoteSettings.h" | ||
|
||
#include "Core/HW/Wiimote.h" | ||
|
||
namespace Config | ||
{ | ||
const Info<WiimoteSource> WIIMOTE_1_SOURCE{{System::WiiPad, "Wiimote1", "Source"}, | ||
WiimoteSource::Emulated}; | ||
const Info<WiimoteSource> WIIMOTE_2_SOURCE{{System::WiiPad, "Wiimote2", "Source"}, | ||
WiimoteSource::None}; | ||
const Info<WiimoteSource> WIIMOTE_3_SOURCE{{System::WiiPad, "Wiimote3", "Source"}, | ||
WiimoteSource::None}; | ||
const Info<WiimoteSource> WIIMOTE_4_SOURCE{{System::WiiPad, "Wiimote4", "Source"}, | ||
WiimoteSource::None}; | ||
const Info<WiimoteSource> WIIMOTE_BB_SOURCE{{System::WiiPad, "BalanceBoard", "Source"}, | ||
WiimoteSource::None}; | ||
|
||
const Info<WiimoteSource>& GetInfoForWiimoteSource(int index) | ||
{ | ||
static const std::array<const Info<WiimoteSource>*, 5> infos{ | ||
&WIIMOTE_1_SOURCE, &WIIMOTE_2_SOURCE, &WIIMOTE_3_SOURCE, | ||
&WIIMOTE_4_SOURCE, &WIIMOTE_BB_SOURCE, | ||
}; | ||
return *infos[index]; | ||
} | ||
|
||
} // namespace Config |
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,20 @@ | ||
// Copyright 2022 Dolphin Emulator Project | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#include "Common/Config/Config.h" | ||
|
||
enum class WiimoteSource; | ||
|
||
namespace Config | ||
{ | ||
extern const Info<WiimoteSource> WIIMOTE_1_SOURCE; | ||
extern const Info<WiimoteSource> WIIMOTE_2_SOURCE; | ||
extern const Info<WiimoteSource> WIIMOTE_3_SOURCE; | ||
extern const Info<WiimoteSource> WIIMOTE_4_SOURCE; | ||
extern const Info<WiimoteSource> WIIMOTE_BB_SOURCE; | ||
|
||
const Info<WiimoteSource>& GetInfoForWiimoteSource(int index); | ||
|
||
} // namespace Config |
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
Oops, something went wrong.