diff options
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, | |||
| 373 | device = GetNSVibrationDevice(handle); | 373 | device = GetNSVibrationDevice(handle); |
| 374 | } | 374 | } |
| 375 | if (device != nullptr) { | 375 | if (device != nullptr) { |
| 376 | // Prevent sending vibrations to an inactive vibration handle | ||
| 377 | if (!device->IsActive()) { | ||
| 378 | return ResultSuccess; | ||
| 379 | } | ||
| 376 | result = device->SendVibrationValue(value); | 380 | result = device->SendVibrationValue(value); |
| 377 | } | 381 | } |
| 378 | return result; | 382 | return result; |