Click or drag to resize

ControllerAxis2D Class

Axis 2D is a combination of values from two individual Axes. This is primarily used for analog sticks. A radial deadzone is applied to the combined values. The deazone is the larger of the two deadzones set in the individual axes. Axis 2D cannot be mapped with an ActionElementMap. Instead, the component axes are each mapped individually. When two Axes are combined into an Axis2D, the values of the individual Axes are changed to reflect the radial deadzone applied by the parent Axis2D.
Inheritance Hierarchy
SystemObject
  RewiredControllerCompoundElement
    RewiredControllerAxis2D

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class Axis2D : ControllerCompoundElement

The ControllerAxis2D type exposes the following members.

Properties
  NameDescription
Public propertyelementCapacity
The maximum number of member Axes of Axis2D.
(Overrides ControllerCompoundElementelementCapacity.)
Public propertyelementCount
The number of member elements in this compound element.
(Inherited from ControllerCompoundElement.)
Public propertyelementIdentifier
The controller element identifier.
(Inherited from ControllerCompoundElement.)
Public propertyhasElements
Does this compound element have any member elements?
(Inherited from ControllerCompoundElement.)
Public propertyid
The element identifier id.
(Inherited from ControllerCompoundElement.)
Public propertyname
The name of this element.
(Inherited from ControllerCompoundElement.)
Public propertytype
The type of this element.
(Inherited from ControllerCompoundElement.)
Public propertyvalue
The combined current value of the X and Y axes.
Public propertyvaluePrev
The combined value of the X and Y axes from the previous frame.
Public propertyvalueRaw
The combined current raw value of the X and Y axes.
Public propertyvalueRawPrev
The combined raw value of the X and Y axes from the previous frame.
Public propertyxAxis
The X Axis element.
Public propertyyAxis
The Y Axis element.
Top
See Also