forked from dolphin-emu/dolphin
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDITData.h
More file actions
50 lines (40 loc) · 1.08 KB
/
DITData.h
File metadata and controls
50 lines (40 loc) · 1.08 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#include <optional>
#include <string>
#include <unordered_map>
#include <variant>
#include <vector>
#include "InputCommon/ImageOperations.h"
namespace InputCommon::DynamicInputTextures
{
struct Data
{
std::string m_image_name;
std::string m_hires_texture_name;
std::string m_generated_folder_name;
struct EmulatedSingleEntry;
struct EmulatedMultiEntry;
using EmulatedEntry = std::variant<EmulatedSingleEntry, EmulatedMultiEntry>;
struct EmulatedSingleEntry
{
std::string m_key;
std::optional<std::string> m_tag;
Rect m_region;
};
struct EmulatedMultiEntry
{
std::string m_combined_tag;
Rect m_combined_region;
std::vector<EmulatedEntry> m_sub_entries;
};
std::unordered_map<std::string, std::vector<EmulatedEntry>> m_emulated_controllers;
struct HostEntry
{
std::vector<std::string> m_keys;
std::optional<std::string> m_tag;
std::string m_path;
};
std::unordered_map<std::string, std::vector<HostEntry>> m_host_devices;
bool m_preserve_aspect_ratio = true;
};
} // namespace InputCommon::DynamicInputTextures