STRUCT FF_HAPTIC_EFFECT(9)
π struct ff_haptic_effect(9) π
okay so this is from the Kernel API Manual, bestie, and the whole page is about struct ff_haptic_effect(9) β literally the haptic-effect struct itself. no cap, itβs giving βsmall but mighty kernel paperworkβ β¨
π NAME π
struct ff_haptic_effect β thatβs it, thatβs the NAME entry. just the struct name plus the lil dash. minimal, mysterious, iconic π«Ά
β¨ SYNOPSIS β¨
hereβs the exact shape of the struct:
struct ff_haptic_effect {
__u16 hid_usage;
__u16 vendor_id;
__u8 vendor_waveform_page;
__u16 intensity;
__u16 repeat_count;
__u16 retrigger_period;
};
πΈ Members πΈ
okay so each member is doing its own little job, and hereβs the rundown:
hid_usageβhid_usageaccording to Haptics page (WAVEFORM_CLICK, etc.)vendor_idβ the waveform vendor ID ifhid_usageis in the vendor-defined rangevendor_waveform_pageβ the vendor waveform page ifhid_usageis in the vendor-defined rangeintensityβ strength of the effect as percentagerepeat_countβ number of times to retrigger effectretrigger_periodβ time before effect is retriggered (in ms)
π¦ SEE ALSO π¦
Kernel file ./include/uapi/linux/input.h is the one to peek at, and the whole squad is:
struct input_absinfo(9)struct input_keymap_entry(9)EVIOCGMTSLOTS(9)EVIOCGMASK(9)EVIOCSMASK(9)struct ff_replay(9)struct ff_trigger(9)struct ff_envelope(9)struct ff_constant_effect(9)struct ff_ramp_effect(9)struct ff_condition_effect(9)struct ff_periodic_effect(9)struct ff_rumble_effect(9)struct ff_effect(9)
mwah π source/version: ./include/uapi/linux Β· date: October 2026 Β· page: struct ff_haptic_effect(9). bye bestie, go read those kernel files π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms