summaryrefslogtreecommitdiffstats
path: root/src/hid_core/resources/npad/npad.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-01-30 17:36:42 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2024-01-30 17:57:03 +0100
commita0f7f2b309e4920e0e3f1217441a4628023f59b8 (patch)
tree5f8c8b2b284369d1e5b9562ad7d7df20f3abc2d9 /src/hid_core/resources/npad/npad.cpp
parentMerge pull request #12843 from t895/system-driver-whoops (diff)
downloadyuzu-a0f7f2b309e4920e0e3f1217441a4628023f59b8.tar
yuzu-a0f7f2b309e4920e0e3f1217441a4628023f59b8.tar.gz
yuzu-a0f7f2b309e4920e0e3f1217441a4628023f59b8.tar.bz2
yuzu-a0f7f2b309e4920e0e3f1217441a4628023f59b8.tar.lz
yuzu-a0f7f2b309e4920e0e3f1217441a4628023f59b8.tar.xz
yuzu-a0f7f2b309e4920e0e3f1217441a4628023f59b8.tar.zst
yuzu-a0f7f2b309e4920e0e3f1217441a4628023f59b8.zip
Diffstat (limited to 'src/hid_core/resources/npad/npad.cpp')
-rw-r--r--src/hid_core/resources/npad/npad.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/hid_core/resources/npad/npad.cpp b/src/hid_core/resources/npad/npad.cpp
index cde84b1bb..2823be348 100644
--- a/src/hid_core/resources/npad/npad.cpp
+++ b/src/hid_core/resources/npad/npad.cpp
@@ -956,17 +956,6 @@ Result NPad::SwapNpadAssignment(u64 aruid, Core::HID::NpadIdType npad_id_1,
return ResultSuccess;
}
-Result NPad::GetLedPattern(Core::HID::NpadIdType npad_id, Core::HID::LedPattern& pattern) const {
- if (!IsNpadIdValid(npad_id)) {
- LOG_ERROR(Service_HID, "Invalid NpadIdType npad_id:{}", npad_id);
- return ResultInvalidNpadId;
- }
- const auto aruid = applet_resource_holder.applet_resource->GetActiveAruid();
- const auto& controller = GetControllerFromNpadIdType(aruid, npad_id).device;
- pattern = controller->GetLedPattern();
- return ResultSuccess;
-}
-
Result NPad::IsUnintendedHomeButtonInputProtectionEnabled(bool& out_is_enabled, u64 aruid,
Core::HID::NpadIdType npad_id) const {
std::scoped_lock lock{mutex};