STRUCT FF_CONDITION_EFFECT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ff_condition_effect(9) β€” the Kernel API Manual, but make it cute πŸŽ€

okay so bestie, welcome to the struct ff_condition_effect(9) page β€” this is the little struct that defines a spring or friction force-feedback effect. yes, like an actual physical spring, in your kernel, no cap. πŸŒ€


✨ NAME ✨

struct ff_condition_effect β€” literally defines a spring or friction force-feedback effect. that's it, that's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

here's the struct, bestie β€” copy it exactly, don't freestyle:

struct ff_condition_effect {
    __u16 right_saturation;
    __u16 left_saturation;
    __s16 right_coeff;
    __s16 left_coeff;
    __u16 deadband;
    __s16 center;
 };

πŸ¦‹ Members πŸ¦‹

okay so let's go through the members one by one, because each one is doing its own little job and we're gonna respect it πŸ’–

  • right_saturation β€” the maximum level when the joystick is moved all the way to the right. it's giving "how hard can this go on the right side" energy. πŸ‘‘
  • left_saturation β€” same for the left side. equality, periodt. ✨
  • right_coeff β€” controls how fast the force grows when the joystick moves to the right. so like, how aggressively the spring fights back. πŸ”₯
  • left_coeff β€” same for the left side. symmetric slay. πŸ’…
  • deadband β€” size of the dead zone, where no force is produced. quiet zone. nothing happening there. peace and love. πŸ•ŠοΈ
  • center β€” position of the dead zone. like, where exactly that no-force zone sits. 🎯

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./include/uapi/linux/input.h β€” and a whole friend group of structs and ioctls that you should absolutely go read next, iykyk:

  • 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_periodic_effect(9)
  • struct ff_rumble_effect(9)
  • struct ff_haptic_effect(9)
  • struct ff_effect(9)

fr fr, this page lives in ./include/uapi/linux and it's dated October 2026 β€” so take the struct ff_condition_effect(9) knowledge and go make something rumble. πŸ’œ

okay that's the whole page bestie, ily, go touch some force-feedback 🌈

πŸ“¦ where this page comes from