Click or drag to resize

ControllerMapReplaceElementMap(Int32, Int32, Pole, KeyCode, ModifierKeyFlags, ActionElementMap) Method

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
C#
public bool ReplaceElementMap(
	int elementMapId,
	int actionId,
	Pole axisContribution,
	KeyCode keyCode,
	ModifierKeyFlags modifierKeyFlags,
	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 key is pressed, does it return a positive or negative value?
keyCode  KeyCode
The keyboard key the Action will be bound to.
modifierKeyFlags  ModifierKeyFlags
Modifier key flags for the keyboard key. ModifierKeyFlags.None = no modifiers.
result  ActionElementMap
The resulting ActionElementMap.

Return Value

Boolean
Success/Failure
See Also