Click or drag to resize

ElementAssignment(ElementAssignmentType, Int32, AxisRange, KeyboardKeyCode, ModifierKeyFlags, Int32, Pole, Boolean, Int32) Constructor

A struct for use in element assignment. Overload for complete assignment to replace an existing element map.

Namespace: Rewired
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
Syntax
C#
public ElementAssignment(
	ElementAssignmentType elementAssignmentType,
	int elementIdentifierId,
	AxisRange axisRange,
	KeyboardKeyCode keyboardKey,
	ModifierKeyFlags modifierKeyFlags,
	int actionId,
	Pole axisContribution,
	bool invert,
	int elementMapId
)

Parameters

elementAssignmentType  ElementAssignmentType
The type of the element assignment.
elementIdentifierId  Int32
The element identifier id the Action will be bound to.
axisRange  AxisRange
The range of the axis of this assignment. Use Positive or Negative to assign a split axis or Full for a single unified axis assignment.
keyboardKey  KeyboardKeyCode
The keyboard key the Action will be bound to. Only used for keyboard maps.
modifierKeyFlags  ModifierKeyFlags
The keyboard modifiers the Action will be bound to. Use this in combination with keyboardKey to make a modified key assignment. Only used for keyboard maps.
actionId  Int32
The id of the Action that will be bound to the controller element.
axisContribution  Pole
Does this Action contribute positive or negative values to the final Action's input value? Used for split axis and button/key assignments.
invert  Boolean
Is the axis inverted? Used only for axis assignments.
elementMapId  Int32
The id of the ActionElementMap that this assignment will be replacing. (Optional)
See Also