TechnologiesLow-level, Kernel & Legacy

ForceFeedback

iOSmacOStvOSwatchOSvisionOS

ForceFeedback is a legacy IOKit-based API for sending force-feedback haptic effects to game controllers and joysticks on macOS. You describe an effect with FFEFFECT and shape it with force structures such as FFCONSTANTFORCE, FFRAMPFORCE, FFPERIODIC, FFCONDITION, and FFCUSTOMFORCE, applying an FFENVELOPE to control how the effect ramps in and out over time. Query a device with FFCAPABILITIES to determine which effects it supports.

Effect Definition 1

The container structure that defines a complete force-feedback effect.

  • St
    FFEFFECT
    @typedef FFEFFECT

Force Shapes 5

Structures that describe the magnitude and behavior of the different kinds of forces an effect can produce.

  • St
    FFCONSTANTFORCE
    @typedef FFCONSTANTFORCE
  • St
    FFRAMPFORCE
    @typedef FFRAMPFORCE
  • St
    FFPERIODIC
    @typedef FFPERIODIC
  • St
    FFCONDITION
    @typedef FFCONDITION
  • St
    FFCUSTOMFORCE
    @typedef FFCUSTOMFORCE

Shaping Effects Over Time 1

The structure that controls how an effect ramps in and fades out.

  • St
    FFENVELOPE
    @typedef FFENVELOPE

Device Capabilities and Control 2

Structures for querying device support and sending device-specific commands.

  • St
    FFCAPABILITIES
    @typedef FFCAPABILITIES
  • St
    FFEFFESCAPE
    @typedef FFEFFESCAPE

Type Aliases 25

  • Ty
    PFFCONSTANTFORCE
  • Ty
    PFFRAMPFORCE
  • Ty
    PFFPERIODIC
  • Ty
    PFFCONDITION
  • Ty
    PFFCUSTOMFORCE
  • Ty
    PFFENVELOPE
  • Ty
    PFFEFFECT
  • Ty
    PFFEFFESCAPE
  • Ty
    PFFCAPABILITIES
  • Ty
    FFDeviceObjectReference
  • Ty
    FFEffectObjectReference
  • Ty
    DWORD
  • Ty
    LPDWORD
  • Ty
    LONG
  • Ty
    LPLONG
  • Ty
    FFCoordinateSystemFlag
Show 9 more
  • Ty
    FFEffectParameterFlag
  • Ty
    FFEffectStartFlag
  • Ty
    FFEffectStatusFlag
  • Ty
    FFCommandFlag
  • Ty
    FFState
  • Ty
    FFProperty
  • Ty
    FFCooperativeLevelFlag
  • Ty
    FFCapabilitiesEffectType
  • Ty
    FFCapabilitiesEffectSubType
← Low-level, Kernel & Legacy