Small changes to initialization of quirks

This commit is contained in:
Oleg
2024-05-29 23:38:38 +03:00
parent 377eb942bf
commit 23255595f7
2 changed files with 11 additions and 32 deletions

View File

@@ -8,15 +8,20 @@
* Substitute 0 length with 0xffff to resolve issues with
* infinite effects coming from windows API
*/
#define PIDFF_QUIRK_FIX_0_INFINITE_LENGTH BIT(0)
#define PIDFF_QUIRK_FIX_0_INFINITE_LENGTH BIT(0)
/*
* Ignore direction for spring/damping/friction/inertia effects
* and always set 16384
*/
#define PIDFF_QUIRK_FIX_WHEEL_DIRECTION BIT(1)
#define PIDFF_QUIRK_FIX_WHEEL_DIRECTION BIT(1)
int hid_pidff_init(struct hid_device *hid);
int hid_pidff_init_with_quirks(struct hid_device *hid, unsigned quirks);
/*
* Skip initialization of 0xA7 descriptor (Delay effect)
*/
#define PIDFF_QUIRK_NO_DELAY_EFFECT BIT(2)
int hid_pidff_init(struct hid_device *hid, const struct hid_device_id *id);
#endif