Class SteamVR_Action_Vector2_Source
  
  
  
  
    Inheritance
    System.Object
    
    
    SteamVR_Action_Vector2_Source
   
  
  
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ToString()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
   
  
  Assembly: Assembly-CSharp.dll
  Syntax
  
    public class SteamVR_Action_Vector2_Source : SteamVR_Action_In_Source, ISteamVR_Action_Vector2, ISteamVR_Action_In_Source, ISteamVR_Action_Source
   
  Fields
  
  
  
  actionData
  
  
  Declaration
  
    protected InputAnalogActionData_t actionData
   
  Field Value
  
  
  
  actionData_size
  
  
  Declaration
  
    protected static uint actionData_size
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt32 | 
         | 
      
    
  
  
  
  changeTolerance
  The amount the axis needs to change before a change is detected
 
  
  Declaration
  
    public float changeTolerance
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
  
  lastActionData
  
  
  Declaration
  
    protected InputAnalogActionData_t lastActionData
   
  Field Value
  
  
  
  vector2Action
  
  
  Declaration
  
    protected SteamVR_Action_Vector2 vector2Action
   
  Field Value
  
  Properties
  
  
  
  
  active
  Returns true if this action is bound and the ActionSet is active
 
  
  Declaration
  
    public override bool active { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  
  
  
  activeBinding
  Returns true if the action is bound
 
  
  Declaration
  
    public override bool activeBinding { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  
  
  
  activeOrigin
  The handle to the origin of the component that was used to update the value for this action
 
  
  Declaration
  
    public override ulong activeOrigin { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt64 | 
         | 
      
    
  
  Overrides
  
  
  
  
  axis
  The current Vector2 value of the action.
Note: Will only return non-zero if the action is also active.
 
  
  Declaration
  
    public Vector2 axis { get; protected set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector2 | 
         | 
      
    
  
  
  
  
  changed
  If the Vector2 value of this action has changed more than the changeTolerance since the last update
 
  
  Declaration
  
    public override bool changed { get; protected set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  
  
  
  delta
  The Vector2 value difference between this update and the previous update.
Note: Will only return non-zero if the action is also active.
 
  
  Declaration
  
    public Vector2 delta { get; protected set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector2 | 
         | 
      
    
  
  
  
  
  lastActive
  Returns true if the action was bound and the ActionSet was active during the previous update
 
  
  Declaration
  
    public override bool lastActive { get; protected set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  
  
  
  lastActiveBinding
  Returns true if the action was bound during the previous update
 
  
  Declaration
  
    public override bool lastActiveBinding { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  
  
  
  lastActiveOrigin
  The handle to the origin of the component that was used to update the value for this action (for the previous update)
 
  
  Declaration
  
    public override ulong lastActiveOrigin { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt64 | 
         | 
      
    
  
  Overrides
  
  
  
  
  lastAxis
  The Vector2 value of the action from the previous update.
Note: Will only return non-zero if the action is also active.
 
  
  Declaration
  
    public Vector2 lastAxis { get; protected set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector2 | 
         | 
      
    
  
  
  
  
  lastChanged
  If the Vector2 value of this action has changed more than the changeTolerance between the previous update and the update before that
 
  
  Declaration
  
    public override bool lastChanged { get; protected set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  
  
  
  lastDelta
  The Vector2 value difference between the previous update and update before that.
Note: Will only return non-zero if the action is also active.
 
  
  Declaration
  
    public Vector2 lastDelta { get; protected set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector2 | 
         | 
      
    
  
  Methods
  
  
  
  
  Initialize()
  [Should not be called by user code]
Initializes the handle for the inputSource, the action data size, and any other related SteamVR data.
 
  
  Declaration
  
    public override void Initialize()
   
  Overrides
  
  
  
  
  
  [Should not be called by user code] Sets up the internals of the action source before SteamVR has been initialized.
 
  
  Declaration
  
    public override void Preinitialize(SteamVR_Action wrappingAction, SteamVR_Input_Sources forInputSource)
   
  Parameters
  
  Overrides
  
  
  
  
  UpdateValue()
  [Should not be called by user code]
Updates the data for this action and this input source. Sends related events.
 
  
  Declaration
  
    public override void UpdateValue()
   
  Overrides
  
  Events
  
  
  
  onActiveBindingChange
  Event fires when the active state of the binding changes
 
  
  Declaration
  
    public event SteamVR_Action_Vector2.ActiveChangeHandler onActiveBindingChange
   
  Event Type
  
  
  
  onActiveChange
  Event fires when the active state (ActionSet active and binding active) changes
 
  
  Declaration
  
    public event SteamVR_Action_Vector2.ActiveChangeHandler onActiveChange
   
  Event Type
  
  
  
  onAxis
  Event fires when the value of the action is non-zero
 
  
  Declaration
  
    public event SteamVR_Action_Vector2.AxisHandler onAxis
   
  Event Type
  
  
  
  onChange
  This event fires whenever the axis changes by more than the specified changeTolerance
 
  
  Declaration
  
    public event SteamVR_Action_Vector2.ChangeHandler onChange
   
  Event Type
  
  
  
  onUpdate
  Event fires when the action is updated
 
  
  Declaration
  
    public event SteamVR_Action_Vector2.UpdateHandler onUpdate
   
  Event Type
  
  Implements