Click or drag to resize

PlayerControllerHelperMapHelperAddMap Method (ControllerType, Int32, ControllerMap, Boolean)

Adds a controller map to the Player. Replaces if a map already exists with the same category and layout. When replaced, map enabled state is copied from the existing map into the replacement.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void AddMap(
	ControllerType controllerType,
	int controllerId,
	ControllerMap map,
	bool startEnabled
)

Parameters

controllerType
Type: RewiredControllerType
Controller type
controllerId
Type: SystemInt32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0.
map
Type: RewiredControllerMap
Controller Map
startEnabled
Type: SystemBoolean
Start this map enabled?
See Also