Skip to main content

SetGamepadStatus

Windows
Available from: LI PASS V1.17.01
If you were looking for the method for use with Unreal Engine, see SetGamepadStatus for Unreal Engine SDK.

Updates gamepad status on LI PASS, to be called when there is a status change in the gamepad connection.

Function definition

public static int SetGamepadStatus(ELIGamepadStatus gamepadStatus)

Input parameters

ParameterTypeDescription
gamepadStatusELIGamepadStatusType of gamepad connected, where None shows that no gamepad is connected or gamepad disconnected, see gamepadStatus for more details.

Code sample

LevelInfinite.SetGamepadStatus(LevelInfinite.ELIGamepadStatus.Xbox);

gamepadStatus

ValueDescription
NoneNo gamepad connected, or gamepad disconnected
XboxXbox gamepad connected
PlayStationPlayStation gamepad connected
SwitchSwitch gamepad connected

UI example

gamepadStatus = Xbox

Image: SetGamepadStatus

gamepadStatus = PlayStation

Image: SetGamepadStatus