diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-04-16 15:51:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 15:51:14 +0200 |
commit | fd49b186fa13c74a61cdf70844486c75cfc0c930 (patch) | |
tree | aff4d01b4a955e7928ed97cb979d80b596d013f3 /src/core/hle/service/hid/hidbus/starlink.cpp | |
parent | Merge pull request #8188 from merryhime/jit-race-page-table-changed (diff) | |
parent | yuzu: Call ignore event after ensuring it's initialized (diff) | |
download | yuzu-fd49b186fa13c74a61cdf70844486c75cfc0c930.tar yuzu-fd49b186fa13c74a61cdf70844486c75cfc0c930.tar.gz yuzu-fd49b186fa13c74a61cdf70844486c75cfc0c930.tar.bz2 yuzu-fd49b186fa13c74a61cdf70844486c75cfc0c930.tar.lz yuzu-fd49b186fa13c74a61cdf70844486c75cfc0c930.tar.xz yuzu-fd49b186fa13c74a61cdf70844486c75cfc0c930.tar.zst yuzu-fd49b186fa13c74a61cdf70844486c75cfc0c930.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/hidbus/starlink.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hidbus/starlink.cpp b/src/core/hle/service/hid/hidbus/starlink.cpp new file mode 100644 index 000000000..3175c48da --- /dev/null +++ b/src/core/hle/service/hid/hidbus/starlink.cpp @@ -0,0 +1,51 @@ +// Copyright 2021 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hid/emulated_controller.h" +#include "core/hid/hid_core.h" +#include "core/hle/service/hid/hidbus/starlink.h" + +namespace Service::HID { +constexpr u8 DEVICE_ID = 0x28; + +Starlink::Starlink(Core::HID::HIDCore& hid_core_, KernelHelpers::ServiceContext& service_context_) + : HidbusBase(service_context_) {} +Starlink::~Starlink() = default; + +void Starlink::OnInit() { + return; +} + +void Starlink::OnRelease() { + return; +}; + +void Starlink::OnUpdate() { + if (!is_activated) { + return; + } + if (!device_enabled) { + return; + } + if (!polling_mode_enabled || !is_transfer_memory_set) { + return; + } + + LOG_ERROR(Service_HID, "Polling mode not supported {}", polling_mode); +} + +u8 Starlink::GetDeviceId() const { + return DEVICE_ID; +} + +std::vector<u8> Starlink::GetReply() const { + return {}; +} + +bool Starlink::SetCommand(const std::vector<u8>& data) { + LOG_ERROR(Service_HID, "Command not implemented"); + return false; +} + +} // namespace Service::HID |