Player.ControllerHelper.ConflictCheckingHelper.RemoveElementAssignmentConflicts Method (ControllerType, Int32, ControllerMap, ActionElementMap, Boolean, Boolean) |
Removes all element assignments on a particular Controller assigned to this Player
that conflict with the assignment in the incoming Action Element Map.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int RemoveElementAssignmentConflicts(
ControllerType controllerType,
int controllerId,
ControllerMap controllerMap,
ActionElementMap elementMap,
bool skipRemovedMaps,
bool forceCheckAllCategories
)
Parameters
- controllerType
- Type: Rewired.ControllerType
The type of controller. - controllerId
- Type: System.Int32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0. - controllerMap
- Type: Rewired.ControllerMap
The Controller Map that contains the incoming Action Element Map. This is used to determine the Map Category for Map Category to Map Category conflict checking. - elementMap
- Type: Rewired.ActionElementMap
The Action Element Map whose assignment will be checked against for conflicts. - skipRemovedMaps
- Type: System.Boolean
If true, removed Controller Maps and Action Element Maps will be skipped. - forceCheckAllCategories
- Type: System.Boolean
If true, all Map Categories will be checked against each other for conflicts regardless of the Map Category to Map Category conflict checking settings defined in the Rewired Input Manager.
Return Value
Type:
Int32Number of Action Element Maps that were removed.
See Also