mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-09 12:08:05 +03:00
30 lines
1.2 KiB
C++
30 lines
1.2 KiB
C++
// 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
|