ControllerMapReplaceElementMap(Int32, Int32, Pole, Int32, ControllerElementType, AxisRange, Boolean, ActionElementMap) Method |
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: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic virtual bool ReplaceElementMap(
int elementMapId,
int actionId,
Pole axisContribution,
int elementIdentifierId,
ControllerElementType elementType,
AxisRange axisRange,
bool invert,
out ActionElementMap result
)
Parameters
- elementMapId Int32
- The unique id of the ActionElementMap being replaced.
- 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
BooleanSuccess/Failure
See Also