2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2015-01-18 23:07:48 +00:00
|
|
|
|
2016-09-21 06:52:38 +00:00
|
|
|
#include "core/hle/service/hid/hid.h"
|
2023-11-15 03:34:27 +00:00
|
|
|
#include "core/hle/service/hid/hid_debug_server.h"
|
|
|
|
#include "core/hle/service/hid/hid_server.h"
|
|
|
|
#include "core/hle/service/hid/hid_system_server.h"
|
2021-05-02 23:41:03 +00:00
|
|
|
#include "core/hle/service/hid/hidbus.h"
|
2018-07-26 12:39:25 +00:00
|
|
|
#include "core/hle/service/hid/irs.h"
|
2023-11-15 03:34:27 +00:00
|
|
|
#include "core/hle/service/hid/resource_manager.h"
|
2018-07-26 12:50:32 +00:00
|
|
|
#include "core/hle/service/hid/xcd.h"
|
2023-02-18 21:26:48 +00:00
|
|
|
#include "core/hle/service/server_manager.h"
|
2015-03-09 04:14:59 +00:00
|
|
|
|
2023-11-15 03:34:27 +00:00
|
|
|
namespace Service::HID {
|
2018-07-26 12:56:16 +00:00
|
|
|
|
2023-02-18 21:26:48 +00:00
|
|
|
void LoopProcess(Core::System& system) {
|
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
2023-11-15 03:34:27 +00:00
|
|
|
std::shared_ptr<ResourceManager> resouce_manager = std::make_shared<ResourceManager>(system);
|
|
|
|
|
|
|
|
server_manager->RegisterNamedService("hid",
|
|
|
|
std::make_shared<IHidServer>(system, resouce_manager));
|
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"hid:dbg", std::make_shared<IHidDebugServer>(system, resouce_manager));
|
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"hid:sys", std::make_shared<IHidSystemServer>(system, resouce_manager));
|
2018-07-26 12:56:16 +00:00
|
|
|
|
2023-02-18 21:26:48 +00:00
|
|
|
server_manager->RegisterNamedService("hidbus", std::make_shared<HidBus>(system));
|
2018-07-26 12:56:16 +00:00
|
|
|
|
2023-11-15 03:34:27 +00:00
|
|
|
server_manager->RegisterNamedService("irs", std::make_shared<IRS::IRS>(system));
|
|
|
|
server_manager->RegisterNamedService("irs:sys", std::make_shared<IRS::IRS_SYS>(system));
|
2023-02-18 21:26:48 +00:00
|
|
|
|
|
|
|
server_manager->RegisterNamedService("xcd:sys", std::make_shared<XCD_SYS>(system));
|
2023-11-15 03:34:27 +00:00
|
|
|
|
2023-02-18 21:26:48 +00:00
|
|
|
system.RunServer(std::move(server_manager));
|
2018-01-15 02:24:50 +00:00
|
|
|
}
|
|
|
|
|
2018-04-20 01:41:44 +00:00
|
|
|
} // namespace Service::HID
|