UKismetSystemLibrary::ResetGamepadAssignmentToController
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintCallable
Description
Clears the gamepad assigned to a specific player controller ID, without affecting other controllers' assignments. Android and iOS only.
Caveats & Gotchas
- • Android and iOS only.
- • Only affects the given ControllerId; use ResetGamepadAssignments to clear all of them at once.
- • After calling this, IsControllerAssignedToGamepad for the same ID will return false until a gamepad is reassigned to it.
Signature
static ENGINE_API void ResetGamepadAssignmentToController(int32 ControllerId) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ControllerId | int32 | The player controller ID whose gamepad assignment should be cleared. | — |
Return Type
void Example
Release one player's gamepad on disconnect C++
UKismetSystemLibrary::ResetGamepadAssignmentToController(0); See Also
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?