Click or drag to resize

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

Creates an ActionElementMap in this controller map for a controller button or axis assignment.

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

Parameters

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