Click or drag to resize

PlayerControllerHelperMapHelperLoadMap Method (ControllerType, Int32, Int32, Int32, Boolean)

Loads a controller map from the maps defined in the Rewired Editor. Replaces if a map already exists with the same category and layout. If enabled is set to true and rules exist that apply to the map, the enabled state will be set based on those settings overriding the startEnabled setting passed into the function.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void LoadMap(
	ControllerType controllerType,
	int controllerId,
	int categoryId,
	int layoutId,
	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.
categoryId
Type: SystemInt32
Category id
layoutId
Type: SystemInt32
Layout id
startEnabled
Type: SystemBoolean
Start this map enabled?
See Also