Click or drag to resize

InputMapperConflictFoundEventData Class

Data for a conflict event.
Inheritance Hierarchy
SystemObject
  RewiredInputMapperEventData
    RewiredInputMapperConflictFoundEventData

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class ConflictFoundEventData : InputMapperEventData

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
Fields
  NameDescription
Public fieldassignment
The pending input assignment.
Public fieldconflicts
A list of assignment conflicts found.
Public fieldinputMapper
The InputMapper that sent this event.
(Inherited from InputMapperEventData.)
Public fieldisProtected
Is one or more of the conflicting maps protected from removal?
Public fieldresponseCallback
Invoke this callback to send a response to the Input Mapper.
Top
See Also