Skip to main content

Set Gamepad Status (SetGamepadStatus)

PC
Supported on: LI PASS V1.17
If you are using the Unity engine, see Unity SDK SetGamepadStatus.

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

Function Definition​

UFUNCTION(BlueprintCallable, Category = "LevelInfinite")
static void SetGamepadStatus(ELIGamepadStatus gamepadStatus);

Parameter Instructions​

ParametersTypeExplanation
gamepadStatusELIGamepadStatusType of gamepad, where None represents no gamepad connected or connection broken, see gamepadStatus for details.

Code Sample​

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