diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-12-20 20:09:10 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-01-20 01:05:20 +0100 |
commit | a4074001fe2e8ed72c87093f57ec972815661b81 (patch) | |
tree | 145ff4c2896098d069cb2b08d175ed8e4c906e83 /src/core/hle/service/hid | |
parent | yuzu: Update controller colors and button names (diff) | |
download | yuzu-a4074001fe2e8ed72c87093f57ec972815661b81.tar yuzu-a4074001fe2e8ed72c87093f57ec972815661b81.tar.gz yuzu-a4074001fe2e8ed72c87093f57ec972815661b81.tar.bz2 yuzu-a4074001fe2e8ed72c87093f57ec972815661b81.tar.lz yuzu-a4074001fe2e8ed72c87093f57ec972815661b81.tar.xz yuzu-a4074001fe2e8ed72c87093f57ec972815661b81.tar.zst yuzu-a4074001fe2e8ed72c87093f57ec972815661b81.zip |
Diffstat (limited to 'src/core/hle/service/hid')
-rw-r--r-- | src/core/hle/service/hid/hidbus/ringcon.cpp | 6 | ||||
-rw-r--r-- | src/core/hle/service/hid/hidbus/ringcon.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/hidbus/ringcon.cpp b/src/core/hle/service/hid/hidbus/ringcon.cpp index 57f1a2a26..af776d506 100644 --- a/src/core/hle/service/hid/hidbus/ringcon.cpp +++ b/src/core/hle/service/hid/hidbus/ringcon.cpp @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include "core/hid/emulated_devices.h" +#include "core/hid/emulated_controller.h" #include "core/hid/hid_core.h" #include "core/hle/kernel/k_event.h" #include "core/hle/kernel/k_readable_event.h" @@ -12,16 +12,18 @@ namespace Service::HID { RingController::RingController(Core::HID::HIDCore& hid_core_, KernelHelpers::ServiceContext& service_context_) : HidbusBase(service_context_) { - input = hid_core_.GetEmulatedDevices(); + input = hid_core_.GetEmulatedController(Core::HID::NpadIdType::Player1); } RingController::~RingController() = default; void RingController::OnInit() { + input->SetPollingMode(Common::Input::PollingMode::Ring); return; } void RingController::OnRelease() { + input->SetPollingMode(Common::Input::PollingMode::Active); return; }; diff --git a/src/core/hle/service/hid/hidbus/ringcon.h b/src/core/hle/service/hid/hidbus/ringcon.h index b37df50ac..845ce85a5 100644 --- a/src/core/hle/service/hid/hidbus/ringcon.h +++ b/src/core/hle/service/hid/hidbus/ringcon.h @@ -9,7 +9,7 @@ #include "core/hle/service/hid/hidbus/hidbus_base.h" namespace Core::HID { -class EmulatedDevices; +class EmulatedController; } // namespace Core::HID namespace Service::HID { @@ -248,6 +248,6 @@ private: .zero = {.value = idle_value, .crc = 225}, }; - Core::HID::EmulatedDevices* input; + Core::HID::EmulatedController* input; }; } // namespace Service::HID |