blob: 6b315b2a2c357241bfb214fe792fa9cf5ac25eba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "DolphinQt/Config/Mapping/MappingWidget.h"
class GCPadEmu final : public MappingWidget
{
Q_OBJECT
public:
enum class SubType
{
StandardController,
AMBaseboard,
};
GCPadEmu(MappingWindow* window, SubType sub_type);
InputConfig* GetConfig() override;
private:
void LoadSettings() override;
void SaveSettings() override;
void CreateMainLayout(SubType sub_type);
};
[[nodiscard]] inline auto CreateStandardControllerMappingWidget(MappingWindow* parent)
{
return new GCPadEmu{parent, GCPadEmu::SubType::StandardController};
}
[[nodiscard]] inline auto CreateAMBaseboardMappingWidget(MappingWindow* parent)
{
return new GCPadEmu{parent, GCPadEmu::SubType::AMBaseboard};
}
|