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.
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
| Parameters | Type | Explanation |
|---|---|---|
| gamepadStatus | ELIGamepadStatus | Type 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
| Value | Description |
|---|---|
| None | No gamepad connected or gamepad connection broken |
| Xbox | Xbox gamepad connected |
| PlayStation | PlayStation gamepad connected |
| Switch | Switch gamepad connected |
Interface Sample
gamepadStatus = Xbox

gamepadStatus = PlayStation
