ElementAssignment(KeyCode, ModifierKeyFlags, Int32, Pole, Int32) Constructor |
A struct for use in element assignment.
Overload for assignment of a keyboard key to replace an existing element map.
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic ElementAssignment(
KeyCode keyboardKey,
ModifierKeyFlags modifierKeyFlags,
int actionId,
Pole axisContribution,
int elementMapId
)
Parameters
- keyboardKey KeyCode
- 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.
- elementMapId Int32
- The id of the ActionElementMap that this assignment will be replacing. (Optional)
See Also