Show / Hide Table of Contents

    Class SteamVR_Action_Vector2_Source

    Inheritance
    System.Object
    SteamVR_Action_Source
    SteamVR_Action_In_Source
    SteamVR_Action_Vector2_Source
    Implements
    ISteamVR_Action_Vector2
    ISteamVR_Action_In_Source
    ISteamVR_Action_Source
    Inherited Members
    SteamVR_Action_In_Source.inputOriginInfo_size
    SteamVR_Action_In_Source.isUpdating
    SteamVR_Action_In_Source.updateTime
    SteamVR_Action_In_Source.activeDevice
    SteamVR_Action_In_Source.trackedDeviceIndex
    SteamVR_Action_In_Source.renderModelComponentName
    SteamVR_Action_In_Source.localizedOriginName
    SteamVR_Action_In_Source.changedTime
    SteamVR_Action_In_Source.lastOriginGetFrame
    SteamVR_Action_In_Source.inputOriginInfo
    SteamVR_Action_In_Source.lastInputOriginInfo
    SteamVR_Action_In_Source.UpdateOriginTrackedDeviceInfo()
    SteamVR_Action_In_Source.GetLocalizedOriginPart(EVRInputStringBits[])
    SteamVR_Action_In_Source.GetLocalizedOrigin()
    SteamVR_Action_Source.fullPath
    SteamVR_Action_Source.handle
    SteamVR_Action_Source.actionSet
    SteamVR_Action_Source.direction
    SteamVR_Action_Source.inputSource
    SteamVR_Action_Source.setActive
    SteamVR_Action_Source.inputSourceHandle
    SteamVR_Action_Source.action
    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)
    Namespace: Valve.VR
    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
    Type Description
    InputAnalogActionData_t

    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
    Type Description
    InputAnalogActionData_t

    vector2Action

    Declaration
    protected SteamVR_Action_Vector2 vector2Action
    Field Value
    Type Description
    SteamVR_Action_Vector2

    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
    SteamVR_Action_Source.active

    activeBinding

    Returns true if the action is bound

    Declaration
    public override bool activeBinding { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    SteamVR_Action_Source.activeBinding

    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
    SteamVR_Action_In_Source.activeOrigin

    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
    SteamVR_Action_In_Source.changed

    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
    SteamVR_Action_Source.lastActive

    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
    SteamVR_Action_Source.lastActiveBinding

    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
    SteamVR_Action_In_Source.lastActiveOrigin

    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
    SteamVR_Action_In_Source.lastChanged

    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
    SteamVR_Action_In_Source.Initialize()

    Preinitialize(SteamVR_Action, SteamVR_Input_Sources)

    [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
    Type Name Description
    SteamVR_Action wrappingAction
    SteamVR_Input_Sources forInputSource
    Overrides
    SteamVR_Action_Source.Preinitialize(SteamVR_Action, SteamVR_Input_Sources)

    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
    SteamVR_Action_In_Source.UpdateValue()

    Events

    onActiveBindingChange

    Event fires when the active state of the binding changes

    Declaration
    public event SteamVR_Action_Vector2.ActiveChangeHandler onActiveBindingChange
    Event Type
    Type Description
    SteamVR_Action_Vector2.ActiveChangeHandler

    onActiveChange

    Event fires when the active state (ActionSet active and binding active) changes

    Declaration
    public event SteamVR_Action_Vector2.ActiveChangeHandler onActiveChange
    Event Type
    Type Description
    SteamVR_Action_Vector2.ActiveChangeHandler

    onAxis

    Event fires when the value of the action is non-zero

    Declaration
    public event SteamVR_Action_Vector2.AxisHandler onAxis
    Event Type
    Type Description
    SteamVR_Action_Vector2.AxisHandler

    onChange

    This event fires whenever the axis changes by more than the specified changeTolerance

    Declaration
    public event SteamVR_Action_Vector2.ChangeHandler onChange
    Event Type
    Type Description
    SteamVR_Action_Vector2.ChangeHandler

    onUpdate

    Event fires when the action is updated

    Declaration
    public event SteamVR_Action_Vector2.UpdateHandler onUpdate
    Event Type
    Type Description
    SteamVR_Action_Vector2.UpdateHandler

    Implements

    ISteamVR_Action_Vector2
    ISteamVR_Action_In_Source
    ISteamVR_Action_Source
    In This Article
    • Fields
      • actionData
      • actionData_size
      • changeTolerance
      • lastActionData
      • vector2Action
    • Properties
      • active
      • activeBinding
      • activeOrigin
      • axis
      • changed
      • delta
      • lastActive
      • lastActiveBinding
      • lastActiveOrigin
      • lastAxis
      • lastChanged
      • lastDelta
    • Methods
      • Initialize()
      • Preinitialize(SteamVR_Action, SteamVR_Input_Sources)
      • UpdateValue()
    • Events
      • onActiveBindingChange
      • onActiveChange
      • onAxis
      • onChange
      • onUpdate
    • Implements
    Back to top Copyright (c) Valve Corporation, All rights reserved.