PlayerControllerHelperMapHelperGetMapsInCategory Method (ControllerType, Int32, String, ListControllerMap) |
Gets a list of controller maps for a specific controller assigned to this Player in a specific category.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public int GetMapsInCategory(
ControllerType controllerType,
int controllerId,
string categoryName,
List<ControllerMap> results
)
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. - categoryName
- Type: SystemString
Map Category name. - results
- Type: System.Collections.GenericListControllerMap
The list that will be filled with the results.
Return Value
Type:
Int32Number of Controller Maps found.
Exceptions Exception | Condition |
---|
ArgumentNullException | results is null |
See Also