IXtfUserClient::PairControllerWithUserId Method

Pairs the user with given user ID, to the controller with given controller ID.

Syntax

public:
HRESULT PairControllerWithUserId(
         UINT32 userId,
         UINT64 controllerId
)  

Parameters

userId
Type: UINT32 

The user ID of the user to be paired. (This is the userId in the XTF_USER_DATA structure describing the user.)

controllerId
Type: UINT64 

The controller ID of the controller. Controllers are created with IXtfInputClient.

Return value

Type: HRESULT 

HRESULT success or error code.

Remarks

The given user is paired with the given controller, even if the controller was previously paired with a different user.

Requirements

Header: Declared in xtfuser.h.

Library: Use xtfuser.lib.