ElementAssignment Constructor (ElementAssignmentType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean) |
A struct for use in element assignment.
Overload for complete new assignment.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public ElementAssignment(
ElementAssignmentType elementAssignmentType,
int elementIdentifierId,
AxisRange axisRange,
KeyCode keyboardKey,
ModifierKeyFlags modifierKeyFlags,
int actionId,
Pole axisContribution,
bool invert
)
Parameters
- elementAssignmentType
- Type: RewiredElementAssignmentType
The type of the element assignment. - elementIdentifierId
- Type: SystemInt32
The element identifier id the Action will be bound to. - axisRange
- Type: RewiredAxisRange
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
- Type: KeyCode
The keyboard key the Action will be bound to. Only used for keyboard maps. - modifierKeyFlags
- Type: RewiredModifierKeyFlags
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
- Type: SystemInt32
The id of the Action that will be bound to the controller element. - axisContribution
- Type: RewiredPole
Does this Action contribute positive or negative values to the final Action's input value? Used for split axis and button/key assignments. - invert
- Type: SystemBoolean
Is the axis inverted? Used only for axis assignments.
See Also