Click or drag to resize

Player.ControllerHelper.MapHelper.LoadMap Method (ControllerType, Int32, Int32, Int32)

Loads a controller map from the maps defined in the Rewired Editor. 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. Otherwise, map starts disabled and must be enabled before it can contribute to input. If ControllerMapEnabler.enabled is set to true and rules exist that apply to the map, the enabled state will be set based on those settings.

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
)

Parameters

controllerType
Type: Rewired.ControllerType
Controller type
controllerId
Type: System.Int32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0.
categoryId
Type: System.Int32
Category id
layoutId
Type: System.Int32
Layout id
See Also