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:
|
2019-09-21 14:13:27 +02:00
|
|
|
explicit Controller_Stubbed(Core::System& system);
|
2018-10-18 02:34:25 +02:00
|
|
|
~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
|
2019-02-14 18:42:58 +01:00
|
|
|
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
|