Skip to main content

SetGamepadStatus

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

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

Function definition

UFUNCTION(BlueprintCallable, Category = "LevelInfinite")
static void 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

ULevelInfiniteAPI::SetGamepadStatus(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