diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-26 15:55:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 15:55:37 +0100 |
commit | 744c0173d133bc5e4a4ad1cfe54fce7b87d89f87 (patch) | |
tree | b1a58bc2bc3bf9c68625cf69be31c09f7b433331 /src/hid_core/resource_manager.cpp | |
parent | Merge pull request #12707 from FearlessTobi/fs-housekeeping (diff) | |
parent | service: hid: Don't try to vibrate if device isn't initialized (diff) | |
download | yuzu-744c0173d133bc5e4a4ad1cfe54fce7b87d89f87.tar yuzu-744c0173d133bc5e4a4ad1cfe54fce7b87d89f87.tar.gz yuzu-744c0173d133bc5e4a4ad1cfe54fce7b87d89f87.tar.bz2 yuzu-744c0173d133bc5e4a4ad1cfe54fce7b87d89f87.tar.lz yuzu-744c0173d133bc5e4a4ad1cfe54fce7b87d89f87.tar.xz yuzu-744c0173d133bc5e4a4ad1cfe54fce7b87d89f87.tar.zst yuzu-744c0173d133bc5e4a4ad1cfe54fce7b87d89f87.zip |
Diffstat (limited to 'src/hid_core/resource_manager.cpp')
-rw-r--r-- | src/hid_core/resource_manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hid_core/resource_manager.cpp b/src/hid_core/resource_manager.cpp index ca824b4a3..8ef0df020 100644 --- a/src/hid_core/resource_manager.cpp +++ b/src/hid_core/resource_manager.cpp @@ -373,6 +373,10 @@ Result ResourceManager::SendVibrationValue(u64 aruid, device = GetNSVibrationDevice(handle); } if (device != nullptr) { + // Prevent sending vibrations to an inactive vibration handle + if (!device->IsActive()) { + return ResultSuccess; + } result = device->SendVibrationValue(value); } return result; |