Share via


IGameInputForceFeedbackEffect::GetDevice (v0)

Retrieves the device associated with the force feedback effect.

Syntax

void GetDevice(  
         IGameInputDevice** device  
)  

Parameters

device   _Outptr_
Type: IGameInputDevice**

Sets the device output device parameter to nullptr. 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 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, abilities, and battery state. You can also activate device specific hardware like haptic and force feedback. For more information, see Advanced GameInput topics.

Requirements

Header: GameInput.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

Overview of GameInput
IGameInputForceFeedbackEffect