---
title: FFCUSTOMFORCE
framework: Force Feedback
role: symbol
role_heading: Structure
platforms: [Mac Catalyst 13.0+, macOS 10.2+]
path: forcefeedback/ffcustomforce
---

# FFCUSTOMFORCE

Contains type-specific information for the CUSTOMFORCE effect.

## Declaration

```swift
struct FFCUSTOMFORCE
```

## Overview

Overview A pointer to a single FFCUSTOMFORCE structure for an effect is passed in the lpvTypeSpecificParams member of the FFEFFECT structure. The structure describes a custom or user-defined force.

## Topics

### Initializers

- [init()](forcefeedback/ffcustomforce/init().md)
- [init(cChannels:dwSamplePeriod:cSamples:rglForceData:)](forcefeedback/ffcustomforce/init(cchannels:dwsampleperiod:csamples:rglforcedata:).md)

### Instance Properties

- [cChannels](forcefeedback/ffcustomforce/cchannels.md)
- [cSamples](forcefeedback/ffcustomforce/csamples.md)
- [dwSamplePeriod](forcefeedback/ffcustomforce/dwsampleperiod.md)
- [rglForceData](forcefeedback/ffcustomforce/rglforcedata.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Data Types

- [FFCAPABILITIES](forcefeedback/ffcapabilities.md)
- [FFCONDITION](forcefeedback/ffcondition.md)
- [FFCONSTANTFORCE](forcefeedback/ffconstantforce.md)
- [FFEFFECT](forcefeedback/ffeffect.md)
- [FFEFFESCAPE](forcefeedback/ffeffescape.md)
- [FFENVELOPE](forcefeedback/ffenvelope.md)
- [FFPERIODIC](forcefeedback/ffperiodic.md)
- [FFRAMPFORCE](forcefeedback/fframpforce.md)
