Module ff

Source
Expand description

Force-feedback support.

evdev force feedback support is modeled after the USB Physical Input Device (PID) Class.

In general, there is no guarantee that any given driver or device will support all features or respect all Effect fields. If you intend to craft immersive experiences with haptic feedback, per-device testing may be necessary.

Structs§

Condition
An effect that applies conditionally and gradually as an axis is moved.
Constant
An effect that applies a constant force.
Damper
Effect
A force-feedback effect description.
EffectId
Identifier for uploaded effects.
EffectType
A force-feedback effect type.
Envelope
An effect envelope.
Feature
Force feedback feature flags.
Friction
Inertia
Periodic
Ramp
Replay
Rumble
A vibration effect.
Spring
Trigger
Configures which button triggers an effect (if any).
Waveform
List of waveform types for Periodic effects.

Enums§

EffectKind
List of supported force-feedback effects.