mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-19 16:27:51 -05:00
controllers/npad: Send an empty vibration on destruction/deactivation
This stops all controllers from continuously vibrating when emulation is stopped.
This commit is contained in:
@ -1022,7 +1022,7 @@ void Hid::SendVibrationValue(Kernel::HLERequestContext& ctx) {
|
||||
const auto parameters{rp.PopRaw<Parameters>()};
|
||||
|
||||
applet_resource->GetController<Controller_NPad>(HidController::NPad)
|
||||
.VibrateController({parameters.vibration_device_handle}, {parameters.vibration_value});
|
||||
.VibrateControllers({parameters.vibration_device_handle}, {parameters.vibration_value});
|
||||
|
||||
LOG_DEBUG(Service_HID,
|
||||
"called, npad_type={}, npad_id={}, device_index={}, applet_resource_user_id={}",
|
||||
@ -1100,7 +1100,7 @@ void Hid::SendVibrationValues(Kernel::HLERequestContext& ctx) {
|
||||
std::memcpy(vibration_values.data(), vibrations.data(), vibrations.size());
|
||||
|
||||
applet_resource->GetController<Controller_NPad>(HidController::NPad)
|
||||
.VibrateController(vibration_device_handles, vibration_values);
|
||||
.VibrateControllers(vibration_device_handles, vibration_values);
|
||||
|
||||
LOG_DEBUG(Service_HID, "called, applet_resource_user_id={}", applet_resource_user_id);
|
||||
|
||||
|
Reference in New Issue
Block a user