Click or drag to resize

PlayerControllerHelperMapHelperAddMapT(Int32, ControllerMap, Boolean) Method

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<T>(
	int controllerId,
	ControllerMap map,
	bool startEnabled
)
where T : ControllerMap

Parameters

controllerId  Int32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0.
map  ControllerMap
Controller Map
startEnabled  Boolean
Start this map enabled?

Type Parameters

T
Map type
See Also