> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputForceFeedbackEffect::GetDevice

> IGameInputForceFeedbackEffect::GetDevice

# IGameInputForceFeedbackEffect::GetDevice

Retrieves the device associated with the force feedback effect.

## Syntax

```cpp theme={null}
void GetDevice(
    IGameInputDevice** device
);
```

### Parameters

*device*   \_Outptr\_\
Type: IGameInputDevice\*\*

This method returns the device associated with the force feedback effect.

### Return value

Type: void

No return.

## Remarks

The `IGameInputForceFeedbackEffect::GetDevice` method retrieves the device associated with the force feedback effect. The [IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice) object represents an input device. The methods in the `IGameInputDevice` interface allow you to identify and interact with a game input device. You can query information about the device such as its type and abilities. You can also activate device specific hardware like haptic and force feedback. For more information, see [Advanced GameInput topics](/build/core-features/common/input/advanced/input-advanced-topics).

## Requirements

**Header:** GameInput.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[Overview of GameInput](/build/core-features/common/input/overviews/input-overview)\
[IGameInputForceFeedbackEffect](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect)

## Version History

| Version | Changes     |
| ------- | ----------- |
| **v0**  | Introduced. |


## Related topics

- [IGameInputForceFeedbackEffect](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)
- [IGameInputForceFeedbackEffect::GetGain](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getgain.md)
- [IGameInputForceFeedbackEffect::SetGain](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect::GetMotorIndex](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getmotorindex.md)
- [IGameInputForceFeedbackEffect::GetParams](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getparams.md)
