PlayerControllerHelperMapHelperGetElementMapsWithAction Method (ControllerType, Int32, String, Boolean, ListActionElementMap) |
Gets a list of all ActionElementMaps for a specific controller that contains a specific Action.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public int GetElementMapsWithAction(
ControllerType controllerType,
int controllerId,
string actionName,
bool skipDisabledMaps,
List<ActionElementMap> results
)
Parameters
- controllerType
- Type: RewiredControllerType
The type of controller. - controllerId
- Type: SystemInt32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0. - actionName
- Type: SystemString
Name of the Action - skipDisabledMaps
- Type: SystemBoolean
- results
- Type: System.Collections.GenericListActionElementMap
The list that will be filled with the results.
Return Value
Type:
Int32Number of maps found.
Exceptions Exception | Condition |
---|
ArgumentNullException | results is null |
See Also