Click or drag to resize

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

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  Int32
The id of the Action to bind to.
axisContribution  Pole
When the button or split-axis is activated, does it return a positive or negative value?
elementIdentifierId  Int32
The id of the controller element identifier the Action will be bound to.
elementType  ControllerElementType
The type of controller element the Action will be bound to.
axisRange  AxisRange
The portion of the axis the Action will be bound to. (Only used if elementType is Axis.)
invert  Boolean
Is the axis inverted? (Only used if elementType is Axis and axisRange is Full.)
result  ActionElementMap
The resulting ActionElementMap.

Return Value

Boolean
Success/Failure
See Also