<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ForceFeedback",
  "identifier" : "/documentation/ForceFeedback/FFDeviceGetForceFeedbackProperty(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Force Feedback"
    ],
    "preciseIdentifier" : "c:@F@FFDeviceGetForceFeedbackProperty"
  },
  "title" : "FFDeviceGetForceFeedbackProperty(_:_:_:_:)"
}
-->

# FFDeviceGetForceFeedbackProperty(_:_:_:_:)

Gets properties that define the device behavior.

```
func FFDeviceGetForceFeedbackProperty(_ deviceReference: FFDeviceObjectReference!, _ property: FFProperty, _ pValue: UnsafeMutableRawPointer!, _ valueSize: IOByteCount) -> HRESULT
```

## Parameters

`deviceReference`

An opaque reference handle to the device object that is be disposed of. This handle is obtained from a previous call to FFCreateDevice.

`property`

The following property values are defined for a FF device (see FFDeviceSetForceFeedbackProperty for details):

    FFPROP_AUTOCENTER

    FFPROP_FFGAIN

`pValue`

Address of the location where the value associated with the property is to be stored. GetForceFeedbackProperty assumes that the pointer is valid, although it will perform a size check before writing the data to pValue

`valueSize`

Size, in bytes, of data area pointed to by pValue. Size is compared to expected property size, and the function fails if a mismatch occurs.

## Return Value

If the method succeeds, the return value is FF_OK or FFERR_UNSUPPORTED. If the method fails, the return value can be one of the following error values:

## Discussion

FFERR_INVALIDPARAM

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)