Click or drag to resize

ControllerMapCreateElementMap(Int32, Pole, KeyboardKeyCode, ModifierKeyFlags, ActionElementMap) Method

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+e8257758c3446d922301bab0e4637a0e5ec1862f
Syntax
C#
public bool CreateElementMap(
	int actionId,
	Pole axisContribution,
	KeyboardKeyCode keyCode,
	ModifierKeyFlags modifierKeyFlags,
	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  KeyboardKeyCode
The keyboard key the Action will be bound to.
modifierKeyFlags  ModifierKeyFlags
Modifier key flags for the keyboard key. ModifierKeyFlags.None = no modifiers.
result  ActionElementMap
The resulting ActionElementMap.

Return Value

Boolean
Success/Failure
See Also