From 0ed05d3f56526619dfba97d0921e25f7e64e9d8a Mon Sep 17 00:00:00 2001 From: awalol Date: Sun, 17 May 2026 18:59:03 +0800 Subject: [PATCH] fix: rumble --- src/state_mgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/state_mgr.cpp b/src/state_mgr.cpp index 6464dd4..49f288e 100644 --- a/src/state_mgr.cpp +++ b/src/state_mgr.cpp @@ -62,10 +62,11 @@ void state_update(const uint8_t *data, const uint8_t size) { byte = (byte & ~(1 << bit)) | (value << bit); }; + set_bit(state[0], 0, update.EnableRumbleEmulation); set_bit(state[0], 1, update.UseRumbleNotHaptics); set_bit(state[38], 2, update.EnableImprovedRumbleEmulation); copy_if_allowed( - update.EnableRumbleEmulation, + update.UseRumbleNotHaptics || update.EnableRumbleEmulation, offsetof(SetStateData, RumbleEmulationRight), 2 );