Click or drag to resize

ReInputMappingHelperGetCustomControllerMapInstanceSavedOrDefault Method (Int32, CustomController, Int32, Int32)

Gets a copy of a Custom Controller Map. This can be used to view the Controller Map saved in user data if available or the default Controller Map setup in the Rewired Input Manager. The Controller Map will be first loaded from UserDataStore. If none is found, it will be loaded from the Rewired Input Manager defaults. UserDataStore must implement IControllerMapStore or data cannot be loaded from saved user data.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public CustomControllerMap GetCustomControllerMapInstanceSavedOrDefault(
	int playerId,
	CustomController customController,
	int mapCategoryId,
	int layoutId
)

Parameters

playerId
Type: SystemInt32
The Player id. This is used when loading from UserDataStore.
customController
Type: RewiredCustomController
Custom Controller for which to retrieve the map
mapCategoryId
Type: SystemInt32
Map Category Id
layoutId
Type: SystemInt32
Layout Id

Return Value

Type: CustomControllerMap
CustomController Map
See Also