2019-09-06 15:09:30 +00:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2019-11-22 20:43:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-22 23:49:48 +00:00
|
|
|
#include "Common/Config/Config.h"
|
|
|
|
|
2019-10-26 16:05:16 +00:00
|
|
|
namespace ciface::DualShockUDPClient
|
2019-09-06 15:09:30 +00:00
|
|
|
{
|
2020-05-09 20:44:45 +00:00
|
|
|
constexpr char DEFAULT_SERVER_ADDRESS[] = "127.0.0.1";
|
|
|
|
constexpr u16 DEFAULT_SERVER_PORT = 26760;
|
|
|
|
|
2019-10-22 23:49:48 +00:00
|
|
|
namespace Settings
|
|
|
|
{
|
2020-07-13 05:26:43 +00:00
|
|
|
// These two kept for backwards compatibility
|
|
|
|
extern const Config::Info<std::string> SERVER_ADDRESS;
|
|
|
|
extern const Config::Info<int> SERVER_PORT;
|
|
|
|
|
2020-05-09 20:44:45 +00:00
|
|
|
extern const Config::Info<std::string> SERVERS;
|
|
|
|
extern const Config::Info<bool> SERVERS_ENABLED;
|
2019-10-22 23:49:48 +00:00
|
|
|
} // namespace Settings
|
|
|
|
|
2019-09-06 15:09:30 +00:00
|
|
|
void Init();
|
|
|
|
void PopulateDevices();
|
|
|
|
void DeInit();
|
2019-10-26 16:05:16 +00:00
|
|
|
} // namespace ciface::DualShockUDPClient
|