ControllerMapReplaceElementMap Method (Int32, Int32, Pole, Int32, ControllerElementType, AxisRange, Boolean) |
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 public bool ReplaceElementMap(
int elementMapId,
int actionId,
Pole axisContribution,
int elementIdentifierId,
ControllerElementType elementType,
AxisRange axisRange,
bool invert
)
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.)
Return Value
Type:
BooleanSuccess/Failure
See Also