Click or drag to resize

InputActionEventDataGetButtonTimedPress Method (Single, Single)

Gets the button held state of an Action after being held for a period of time. This will return TRUE only after the button has been held for the specified time and will continue to return TRUE until the button is released. This also applies to axes being used as buttons.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool GetButtonTimedPress(
	float time,
	float expireIn
)

Parameters

time
Type: SystemSingle
Minimum time the button must be held before returning true.
expireIn
Type: SystemSingle
Time in seconds after activation that the press will expire. Once expired, it will no longer return true even if held. [0 = Never expire]

Return Value

Type: Boolean
The button held state
See Also