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.
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
Parameter | Type | Description |
---|---|---|
gamepadStatus | ELIGamepadStatus | Type 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
Value | Description |
---|---|
None | No gamepad connected, or gamepad disconnected |
Xbox | Xbox gamepad connected |
PlayStation | PlayStation gamepad connected |
Switch | Switch gamepad connected |
UI example
gamepadStatus = Xbox
gamepadStatus = PlayStation