ControllerMapReplaceElementMap Method (Int32, Int32, Pole, KeyCode, ModifierKey, ModifierKey, ModifierKey, ActionElementMap) |
Replaces an ActionElementMap in this controller map with a new keyboard key 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,
KeyCode keyCode,
ModifierKey modifierKey1,
ModifierKey modifierKey2,
ModifierKey modifierKey3,
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 key is pressed, does it return a positive or negative value? - keyCode
- Type: KeyCode
The keyboard key the Action will be bound to. - modifierKey1
- Type: RewiredModifierKey
First modifier key for the keyboard key. KeyCode.None = no modifier. - modifierKey2
- Type: RewiredModifierKey
Second modifier key for the keyboard key. KeyCode.None = no modifier. - modifierKey3
- Type: RewiredModifierKey
Third modifier key for the keyboard key. KeyCode.None = no modifier. - result
- Type: RewiredActionElementMap
The resulting ActionElementMap.
Return Value
Type:
BooleanSuccess/Failure
See Also