Click or drag to resize

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: Rewired
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool SetLastActiveController(
	Controller controller
)

Parameters

controller  Controller
The controller.

Return Value

Boolean
True on success. False on failure.
See Also