ControllerMap.CreateElementMap Method (Int32, Pole, KeyCode, ModifierKeyFlags) |
Creates an ActionElementMap in this controller map for a keyboard key assignment.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic bool CreateElementMap(
int actionId,
Pole axisContribution,
KeyCode keyCode,
ModifierKeyFlags modifierKeyFlags
)
Parameters
- actionId
- Type: System.Int32
The id of the Action to bind to. - axisContribution
- Type: Rewired.Pole
When the key is pressed, does it return a positive or negative value? - keyCode
- Type: KeyCode
The keyboard key the Action will be bound to. - modifierKeyFlags
- Type: Rewired.ModifierKeyFlags
Modifier key flags for the keyboard key. ModifierKeyFlags.None = no modifiers.
Return Value
Type:
BooleanSuccess/Failure
See Also