summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid_debug_server.h
blob: 7d5b082b3ac01a5035de4ea44bf358c8a03dfd53 (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
33
34
35
36
37
38
39
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#pragma once

#include "core/hle/service/service.h"

namespace Core {
class System;
}

namespace Service::HID {
class ResourceManager;
class HidFirmwareSettings;

class IHidDebugServer final : public ServiceFramework<IHidDebugServer> {
public:
    explicit IHidDebugServer(Core::System& system_, std::shared_ptr<ResourceManager> resource,
                             std::shared_ptr<HidFirmwareSettings> settings);
    ~IHidDebugServer() override;

private:
    void DeactivateTouchScreen(HLERequestContext& ctx);
    void SetTouchScreenAutoPilotState(HLERequestContext& ctx);
    void UnsetTouchScreenAutoPilotState(HLERequestContext& ctx);
    void GetTouchScreenConfiguration(HLERequestContext& ctx);
    void ProcessTouchScreenAutoTune(HLERequestContext& ctx);
    void ForceStopTouchScreenManagement(HLERequestContext& ctx);
    void ForceRestartTouchScreenManagement(HLERequestContext& ctx);
    void IsTouchScreenManaged(HLERequestContext& ctx);
    void DeactivateGesture(HLERequestContext& ctx);

    std::shared_ptr<ResourceManager> GetResourceManager();

    std::shared_ptr<ResourceManager> resource_manager;
    std::shared_ptr<HidFirmwareSettings> firmware_settings;
};

} // namespace Service::HID