2019-09-06 15:09:30 +00:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-09-06 15:09:30 +00:00
|
|
|
|
2019-11-22 20:43:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-22 23:49:48 +00:00
|
|
|
#include "Common/Config/Config.h"
|
2022-10-22 22:33:21 +00:00
|
|
|
#include "InputCommon/ControllerInterface/InputBackend.h"
|
2019-10-22 23:49:48 +00:00
|
|
|
|
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
|
|
|
|
|
2022-10-22 22:33:21 +00:00
|
|
|
std::unique_ptr<ciface::InputBackend> CreateInputBackend(ControllerInterface* controller_interface);
|
|
|
|
|
2019-10-26 16:05:16 +00:00
|
|
|
} // namespace ciface::DualShockUDPClient
|