InputMapperConflictFoundEventData Class |
Namespace: Rewired
public class ConflictFoundEventData : InputMapperEventData
The InputMapperConflictFoundEventData type exposes the following members.
Name | Description | |
---|---|---|
IsSwapAllowed |
Is swapping allowed for the current assignment?
You must check this before passing Swap to responseCallback.
Do not pass Swap to responseCallback if this function returns false.
Swapping is only allowed if all of the following conditions are met:
1. Assignment must be a replacement assignment of an existing mapping.
2. Only one conflicting mapping was found.
3. Conflicting mapping is not protected.
4. Conflicting mapping belongs to the same Player as the new assignment.
Due to the complexity of swapping full-axis and split-axis / button mappings, some swap operations may result in
the creation of additional positive-pole mappings to an Axis-type Action. To avoid creation of more mappings than
can be displayed in the UI, pass the maximum number of columns your UI supports for the specific controller type to
maxInputFieldCount to prevent this. If there is no more room for a new mapping visually, this function will return false.
To ignore input field count limits, pass 0 to maxInputFieldCount.
|
Name | Description | |
---|---|---|
assignment |
The pending input assignment.
| |
conflicts |
A list of assignment conflicts found.
| |
inputMapper |
The InputMapper that sent this event.
(Inherited from InputMapperEventData.) | |
isProtected |
Is one or more of the conflicting maps protected from removal?
| |
responseCallback |
Invoke this callback to send a response to the Input Mapper.
|