Skip to main content

Set Gamepad Status (SetGamepadStatus)

Windows
Supported in: LI PASS V1.17.01
If you are using Unreal Engine, please refer to SetGamepadStatus in the Unreal Engine SDK.

Update the gamepad status in LI PASS, called when the gamepad link status changes.

Function Definition

public static int SetGamepadStatus(ELIGamepadStatus gamepadStatus)

Parameter Instructions

ParametersTypeExplanation
gamepadStatusELIGamepadStatusType of gamepad. 'None' indicates no gamepad is connected or the connection is broken. See gamepadStatus for details.

Code Sample

LevelInfinite.SetGamepadStatus(LevelInfinite.ELIGamepadStatus.Xbox);

gamepadStatus

ValueDescription
NoneNo gamepad connected or gamepad connection broken
XboxXbox gamepad connected
PlayStationPlayStation gamepad connected
SwitchSwitch gamepad connected

Interface Sample

gamepadStatus = Xbox

Image: SetGamepadStatus

gamepadStatus = PlayStation

Image: SetGamepadStatus