From 30e53d381b759b2ec3b16d13f38a32293c8f0270 Mon Sep 17 00:00:00 2001 From: zakk4223 Date: Wed, 26 Jun 2024 01:55:10 -0400 Subject: [PATCH] Set rumble direction to x-axis on wheel devices. (#906) (Rumble has no direction, but many drivers convert this to a FF_SINE) --- input.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/input.cpp b/input.cpp index 396ed84..2f49773 100644 --- a/input.cpp +++ b/input.cpp @@ -4376,6 +4376,7 @@ static int rumble_input_device(int devnum, uint16_t strong_mag, uint16_t weak_ma fef = &input[devnum].rumble_effect; fef->type = FF_RUMBLE; + fef->direction = input[devnum].quirk == QUIRK_WHEEL ? 0x4000 : 0x0000; fef->u.rumble.strong_magnitude = strong_mag; fef->u.rumble.weak_magnitude = weak_mag; fef->replay.length = duration;