ControllerMapCreateElementMap(Int32, Pole, KeyCode, ModifierKey, ModifierKey, ModifierKey, ActionElementMap) Method |
Creates an ActionElementMap in this controller map for a keyboard key assignment.
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic bool CreateElementMap(
int actionId,
Pole axisContribution,
KeyCode keyCode,
ModifierKey modifierKey1,
ModifierKey modifierKey2,
ModifierKey modifierKey3,
out ActionElementMap result
)
Parameters
- 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.
- modifierKey1 ModifierKey
- First modifier key for the keyboard key. KeyCode.None = no modifier.
- modifierKey2 ModifierKey
- Second modifier key for the keyboard key. KeyCode.None = no modifier.
- modifierKey3 ModifierKey
- Third modifier key for the keyboard key. KeyCode.None = no modifier.
- result ActionElementMap
- The resulting ActionElementMap.
Return Value
BooleanSuccess/Failure
See Also