Click or drag to resize

ConflictFoundEventData Methods

The InputMapperConflictFoundEventData type exposes the following members.

Methods
  NameDescription
Public methodIsSwapAllowed
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.
Top
See Also