summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/hid_registration.h
blob: 67cd849615e3eb5c5adb864787ae5f1eb483d28c (plain) (blame)
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
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <memory>

namespace Core {
class System;
}

namespace Service::HID {
class IHidServer;
}

namespace Service::AM {

class Process;

class HidRegistration {
public:
    explicit HidRegistration(Core::System& system, Process& process);
    ~HidRegistration();

    void EnableAppletToGetInput(bool enable);

private:
    Process& m_process;
    std::shared_ptr<Service::HID::IHidServer> m_hid_server;
};

} // namespace Service::AM