Click or drag to resize

Controller.GetButtonById Method

Gets the button held state of the hardware button at the specified element identifier id. This will return TRUE as long as the button is held. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual bool GetButtonById(
	int elementIdentifierId
)

Parameters

elementIdentifierId
Type: System.Int32
Element identifier id

Return Value

Type: Boolean
Button held state
See Also