blob: 8cb95ee5a5e7e606aaa0f5ca7985262363c27e90 (
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
|
// Copyright 2026 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <string>
#include <vector>
struct DualShockUDPServer
{
std::string description;
std::string server_address;
int server_port;
};
namespace DualShockUDPSettings
{
constexpr char FIELD_SEPARATOR = ':';
constexpr char SERVER_SEPARATOR = ';';
std::vector<DualShockUDPServer> GetServers();
void AddServer(DualShockUDPServer server);
void ReplaceServer(size_t index, DualShockUDPServer server);
void RemoveServer(size_t index);
bool IsEnabled();
void SetEnabled(bool enabled);
} // namespace DualShockUDPSettings
|