PlayerControllerHelperSetLastActiveController Method |
Sets the last active controller manually.
This overrides the last active controller temporarily, using the current time as the last active time for the controller.
When another mapped Action bound to a Controller returns input with a later timestamp, it will become the last active controller.
Required: The Controller must be connected and assigned to the Player.
Note that when setting this value, the last active controller event will not be sent until the next Rewired update.
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+20d1932ee9c49d9b6496f76a0835fd9b82311ad2
Syntaxpublic bool SetLastActiveController(
Controller controller
)
Parameters
- controller Controller
- The controller.
Return Value
BooleanTrue on success. False on failure.
See Also