Click or drag to resize

ControllerMapReplaceElementMap Method (Int32, Int32, Pole, Int32, ControllerElementType, AxisRange, Boolean, ActionElementMap)

Replaces an ActionElementMap in this controller map with a new button or axis assignment. If the ActionElementMap is not found in this controller map, a new ActionElementMap will not be created.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual bool ReplaceElementMap(
	int elementMapId,
	int actionId,
	Pole axisContribution,
	int elementIdentifierId,
	ControllerElementType elementType,
	AxisRange axisRange,
	bool invert,
	out ActionElementMap result
)

Parameters

elementMapId
Type: SystemInt32
The unique id of the ActionElementMap being replaced.
actionId
Type: SystemInt32
The id of the Action to bind to.
axisContribution
Type: RewiredPole
When the button or split-axis is activated, does it return a positive or negative value?
elementIdentifierId
Type: SystemInt32
The id of the controller element identifier the Action will be bound to.
elementType
Type: RewiredControllerElementType
The type of controller element the Action will be bound to.
axisRange
Type: RewiredAxisRange
The portion of the axis the Action will be bound to. (Only used if elementType is Axis.)
invert
Type: SystemBoolean
Is the axis inverted? (Only used if elementType is Axis and axisRange is Full.)
result
Type: RewiredActionElementMap
The resulting ActionElementMap.

Return Value

Type: Boolean
Success/Failure
See Also