Click or drag to resize

ElementAssignment Structure

A struct for making a controller element assignement.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public struct ElementAssignment

The ElementAssignment type exposes the following members.

Constructors
  NameDescription
Public methodElementAssignment(Int32, Int32, Pole)
A struct for use in element assignment. Overload for assignment of a button.
Public methodElementAssignment(Int32, Int32, Boolean)
A struct for use in element assignment. Overload for assignment of a full axis.
Public methodElementAssignment(Int32, AxisRange, Int32, Pole)
A struct for use in element assignment. Overload for assignment of a split axis.
Public methodElementAssignment(Int32, Int32, Pole, Int32)
A struct for use in element assignment. Overload for assignment of a button to replace an existing element map.
Public methodElementAssignment(Int32, Int32, Boolean, Int32)
A struct for use in element assignment. Overload for assignment of a full axis to replace an existing element map.
Public methodElementAssignment(KeyCode, ModifierKeyFlags, Int32, Pole)
A struct for use in element assignment. Overload for assignment of a keyboard key.
Public methodElementAssignment(Int32, AxisRange, Int32, Pole, Int32)
A struct for use in element assignment. Overload for assignment of a split axis to replace an existing element map.
Public methodElementAssignment(KeyCode, ModifierKeyFlags, Int32, Pole, Int32)
A struct for use in element assignment. Overload for assignment of a keyboard key to replace an existing element map.
Public methodElementAssignment(ElementAssignmentType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean)
A struct for use in element assignment. Overload for complete new assignment.
Public methodElementAssignment(ControllerType, ControllerElementType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean)
A struct for use in element assignment. Overload for complete new assignment.
Public methodElementAssignment(ElementAssignmentType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean, Int32)
A struct for use in element assignment. Overload for complete assignment to replace an existing element map.
Public methodElementAssignment(ControllerType, ControllerElementType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean, Int32)
A struct for use in element assignment. Overload for complete assignment to replace an existing element map.
Top
Methods
  NameDescription
Public methodStatic memberButtonAssignment(Int32, Int32, Pole)
Creates a struct for use in element assignment. For assignment of a button.
Public methodStatic memberButtonAssignment(Int32, Int32, Pole, Int32)
Creates a struct for use in element assignment. For assignment of a button to replace an existing element map.
Public methodStatic memberCompleteAssignment(ElementAssignmentType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean)
Creates a struct for use in element assignment. For complete new assignment.
Public methodStatic memberCompleteAssignment(ControllerType, ControllerElementType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean)
Creates a struct for use in element assignment. For complete new assignment.
Public methodStatic memberCompleteAssignment(ElementAssignmentType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean, Int32)
Creates a struct for use in element assignment. For complete assignment to replace an existing element map.
Public methodStatic memberCompleteAssignment(ControllerType, ControllerElementType, Int32, AxisRange, KeyCode, ModifierKeyFlags, Int32, Pole, Boolean, Int32)
Creates a struct for use in element assignment. For complete assignment to replace an existing element map.
Public methodStatic memberFullAxisAssignment(Int32, Int32, Boolean)
Creates a struct for use in element assignment. For assignment of a full axis.
Public methodStatic memberFullAxisAssignment(Int32, Int32, Boolean, Int32)
Creates a struct for use in element assignment. For assignment of a full axis to replace an existing element map.
Public methodStatic memberKeyboardKeyAssignment(KeyCode, ModifierKeyFlags, Int32, Pole)
Creates a struct for use in element assignment. For assignment of a keyboard key.
Public methodStatic memberKeyboardKeyAssignment(KeyCode, ModifierKeyFlags, Int32, Pole, Int32)
Creates a struct for use in element assignment. For assignment of a keyboard key to replace an existing element map.
Public methodStatic memberSplitAxisAssignment(Int32, AxisRange, Int32, Pole)
Creates a struct for use in element assignment. For assignment of a split axis.
Public methodStatic memberSplitAxisAssignment(Int32, AxisRange, Int32, Pole, Int32)
Creates a struct for use in element assignment. For assignment of a split axis to replace an existing element map.
Public methodToElementAssignmentConflictCheck
Converts this ElementAssignment to an ElementAssignmentConflictCheck struct. Can be used for conflict checking. You may need to provide additional data to the resulting ElementAssignmentConflictCheck before performing the conflict check.
Top
Fields
  NameDescription
Public fieldactionId
The id of the Action that will be bound to the controller element.
Public fieldaxisContribution
Does this Action contribute positive or negative values to the final Action's input value? Used for split axis and button/key assignments.
Public fieldaxisRange
The range of the axis of this assignment. Use Positive or Negative to assign a split axis or Full for a single unified axis assignment.
Public fieldelementIdentifierId
The element identifier id the Action will be bound to.
Public fieldelementMapId
The id of the ActionElementMap that this assignment will be replacing. (Optional)
Public fieldinvert
Is the axis inverted? Used only for axis assignments.
Public fieldkeyboardKey
The keyboard key the Action will be bound to. Only used for keyboard maps.
Public fieldmodifierKeyFlags
The keyboard modifiers the Action will be bound to. Use this in combination with keyboardKey to make a modified key assignment. Only used for keyboard maps.
Public fieldtype
The type of the element assignment.
Top
See Also