diff options
author | german77 <juangerman-13@hotmail.com> | 2021-05-03 01:41:03 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-04-16 07:49:21 +0200 |
commit | b2359f1527df30e151a44221f4276e6b14ec0bca (patch) | |
tree | e8b887327b39ad3a07dde8d7d9c85a55e4ff7494 /src/core/hle/service/hid/hidbus/stubbed.h | |
parent | Merge pull request #8205 from liamwhite/n64-misc (diff) | |
download | yuzu-b2359f1527df30e151a44221f4276e6b14ec0bca.tar yuzu-b2359f1527df30e151a44221f4276e6b14ec0bca.tar.gz yuzu-b2359f1527df30e151a44221f4276e6b14ec0bca.tar.bz2 yuzu-b2359f1527df30e151a44221f4276e6b14ec0bca.tar.lz yuzu-b2359f1527df30e151a44221f4276e6b14ec0bca.tar.xz yuzu-b2359f1527df30e151a44221f4276e6b14ec0bca.tar.zst yuzu-b2359f1527df30e151a44221f4276e6b14ec0bca.zip |
Diffstat (limited to 'src/core/hle/service/hid/hidbus/stubbed.h')
-rw-r--r-- | src/core/hle/service/hid/hidbus/stubbed.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hidbus/stubbed.h b/src/core/hle/service/hid/hidbus/stubbed.h new file mode 100644 index 000000000..40acdfe8f --- /dev/null +++ b/src/core/hle/service/hid/hidbus/stubbed.h @@ -0,0 +1,39 @@ +// Copyright 2021 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" +#include "core/hle/service/hid/hidbus/hidbus_base.h" + +namespace Core::HID { +class EmulatedController; +} // namespace Core::HID + +namespace Service::HID { + +class HidbusStubbed final : public HidbusBase { +public: + explicit HidbusStubbed(Core::HID::HIDCore& hid_core_, + KernelHelpers::ServiceContext& service_context_); + ~HidbusStubbed() override; + + void OnInit() override; + + void OnRelease() override; + + // Updates ringcon transfer memory + void OnUpdate() override; + + // Returns the device ID of the joycon + u8 GetDeviceId() const override; + + // Assigns a command from data + bool SetCommand(const std::vector<u8>& data) override; + + // Returns a reply from a command + std::vector<u8> GetReply() const override; +}; + +} // namespace Service::HID |