yuzu/src/core/hle/service/hid/controllers/stubbed.h

35 lines
982 B
C++
Raw Normal View History

2018-10-05 16:23:21 +02:00
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
2018-10-06 05:14:42 +02:00
2018-10-05 16:23:21 +02:00
#include "common/common_types.h"
#include "core/hle/service/hid/controllers/controller_base.h"
namespace Service::HID {
class Controller_Stubbed final : public ControllerBase {
public:
explicit Controller_Stubbed(Core::System& system_);
~Controller_Stubbed() override;
2018-10-05 16:23:21 +02:00
// Called when the controller is initialized
2019-09-22 08:41:34 +02:00
void OnInit() override;
2018-10-05 16:23:21 +02:00
// When the controller is released
void OnRelease() override;
// When the controller is requesting an update for the shared memory
void OnUpdate(const Core::Timing::CoreTiming& core_timing, u8* data, std::size_t size) override;
2018-10-05 16:23:21 +02:00
// Called when input devices should be loaded
void OnLoadInputDevices() override;
2018-10-06 05:14:42 +02:00
void SetCommonHeaderOffset(std::size_t off);
2018-10-05 16:23:21 +02:00
private:
bool smart_update{};
2018-10-06 05:14:42 +02:00
std::size_t common_offset{};
2018-10-05 16:23:21 +02:00
};
2018-10-06 05:14:42 +02:00
} // namespace Service::HID