VERY experimental Nintendo Switch 2 emulator
C++
core: hid: Allow to disable vibration
Narr the Reg0748704ca685
diff --git a/src/hid_core/frontend/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cppindex f2499502dd..e12e5a77ea 100644--- a/src/hid_core/frontend/emulated_controller.cpp+++ b/src/hid_core/frontend/emulated_controller.cpp@@ -1240,12 +1240,17 @@ bool EmulatedController::SetVibration(DeviceIndex device_index, const VibrationVif (!output_devices[index]) {return false;}++ last_vibration_value = vibration;++ if (!Settings::values.vibration_enabled) {+ return false;+ }+const auto player_index = Service::HID::NpadIdTypeToIndex(npad_id_type);const auto& player = Settings::values.players.GetValue()[player_index];const f32 strength = static_cast<f32>(player.vibration_strength) / 100.0f;- last_vibration_value = vibration;-if (!player.vibration_enabled) {return false;}