Rework envelope checks to fix FFB for Moza
Only set envelopes when they are needed (any value is != 0). This fixes Moza FFB in games that use Sine effect to emulate constant force. Remove FIX_PERIODIC_ENVELOPE quirk as it's no longer needed
This commit is contained in:
14
hid-pidff.h
14
hid-pidff.h
@@ -4,21 +4,15 @@
|
||||
|
||||
/* PIDFF Quirks to solve issues with certain devices */
|
||||
|
||||
/*
|
||||
* Always set a value > 0 for PERIODIC envelope attack and fade level
|
||||
*/
|
||||
#define PIDFF_QUIRK_FIX_PERIODIC_ENVELOPE BIT(0)
|
||||
|
||||
/*
|
||||
* Ignore direction and always set 16384 (0x4000)
|
||||
*/
|
||||
#define PIDFF_QUIRK_FIX_WHEEL_DIRECTION BIT(1)
|
||||
*/
|
||||
#define PIDFF_QUIRK_FIX_WHEEL_DIRECTION BIT(0)
|
||||
|
||||
/*
|
||||
* Skip initialization of 0xA7 descriptor (Delay effect)
|
||||
*/
|
||||
#define PIDFF_QUIRK_NO_DELAY_EFFECT BIT(2)
|
||||
|
||||
*/
|
||||
#define PIDFF_QUIRK_NO_DELAY_EFFECT BIT(1)
|
||||
|
||||
int hid_pidff_init_quirks(struct hid_device *hid, const struct hid_device_id *id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user