Class SteamVR_Action_In_Source
In actions are all input type actions. Boolean, Single, Vector2, Vector3, Skeleton, and Pose.
This class fires onChange and onUpdate events.
Inheritance
System.Object
SteamVR_Action_In_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 abstract class SteamVR_Action_In_Source : SteamVR_Action_Source, ISteamVR_Action_In_Source, ISteamVR_Action_Source
Fields
Declaration
protected InputOriginInfo_t inputOriginInfo
Field Value
Declaration
protected static uint inputOriginInfo_size
Field Value
Type |
Description |
System.UInt32 |
|
Declaration
protected InputOriginInfo_t lastInputOriginInfo
Field Value
Properties
activeDevice
The input source that triggered the action to be updated
Declaration
public SteamVR_Input_Sources activeDevice { get; }
Property Value
activeOrigin
The handle to the component that triggered the action to be changed
Declaration
public abstract ulong activeOrigin { get; }
Property Value
Type |
Description |
System.UInt64 |
|
changed
Returns true if the action has been changed since the previous update
Declaration
public abstract bool changed { get; protected set; }
Property Value
Type |
Description |
System.Boolean |
|
changedTime
The Time.realtimeSinceStartup that this action was last changed.
Declaration
public float changedTime { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
isUpdating
[Should not be called by user code]
Forces the system to start updating the data for this action and the specified input source.
Should only be used if you've set SteamVR_Action.startUpdatingSourceOnAccess to false.
Declaration
public bool isUpdating { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
lastActiveOrigin
The handle to the component that triggered the action to be changed in the previous update
Declaration
public abstract ulong lastActiveOrigin { get; }
Property Value
Type |
Description |
System.UInt64 |
|
lastChanged
Returns true if the action was changed for the previous update cycle
Declaration
public abstract bool lastChanged { get; protected set; }
Property Value
Type |
Description |
System.Boolean |
|
lastOriginGetFrame
Declaration
protected int lastOriginGetFrame { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
localizedOriginName
Gets the localized full name of the device that the action was updated by. ex: "Left Hand Vive Controller Trackpad"
Declaration
public string localizedOriginName { get; }
Property Value
Type |
Description |
System.String |
|
renderModelComponentName
The name of the component on the render model that caused the action to be updated (not localized)
Declaration
public string renderModelComponentName { get; }
Property Value
Type |
Description |
System.String |
|
trackedDeviceIndex
The device index (used by Render Models) used by the device that triggered the action to be updated
Declaration
public uint trackedDeviceIndex { get; }
Property Value
Type |
Description |
System.UInt32 |
|
updateTime
The time the action was updated (Time.realtimeSinceStartup)
Declaration
public float updateTime { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
Methods
GetLocalizedOrigin()
Gets the localized full name of the device that the action was updated by. ex: "Left Hand Vive Controller Trackpad"
Declaration
public string GetLocalizedOrigin()
Returns
Type |
Description |
System.String |
|
Gets the localized name of the device that the action corresponds to. Include as many EVRInputStringBits as you want to add to the localized string
Declaration
public string GetLocalizedOriginPart(params EVRInputStringBits[] localizedParts)
Parameters
Type |
Name |
Description |
EVRInputStringBits[] |
localizedParts |
- VRInputString_Hand - Which hand the origin is in. ex: "Left Hand".
- VRInputString_ControllerType - What kind of controller the user has in that hand. ex: "Vive Controller".
- VRInputString_InputSource - What part of that controller is the origin. ex: "Trackpad".
- VRInputString_All - All of the above. ex: "Left Hand Vive Controller Trackpad".
|
Returns
Type |
Description |
System.String |
|
Initialize()
[Should not be called by user code] Initializes the handle for the action, the size of the InputOriginInfo struct, and any other related SteamVR data.
Declaration
public override void Initialize()
Overrides
UpdateOriginTrackedDeviceInfo()
Declaration
protected void UpdateOriginTrackedDeviceInfo()
UpdateValue()
[Should not be called by user code] Updates the data for this action and this input source
Declaration
public abstract void UpdateValue()
Implements