Set Gamepad Status (SetGamepadStatus)
Update the gamepad status in LI PASS, called when the gamepad link status changes.
Function definition
public static int SetGamepadStatus(ELIGamepadStatus gamepadStatus)
Parameter Instructions
| Parameter | 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 | Explanation |
|---|---|
| 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
