Class SteamVR_Action_Single_Source
Inheritance
System.Object
SteamVR_Action_Single_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_Single_Source : SteamVR_Action_In_Source, ISteamVR_Action_Single, 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
singleAction
Declaration
protected SteamVR_Action_Single singleAction
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 float value of the action.
Note: Will only return non-zero if the action is also active.
Declaration
public float axis { get; }
Property Value
| Type |
Description |
| System.Single |
|
changed
If the float 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 float value difference between this update and the previous update.
Note: Will only return non-zero if the action is also active.
Declaration
public float delta { get; }
Property Value
| Type |
Description |
| System.Single |
|
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 float value of the action from the previous update.
Note: Will only return non-zero if the action is also active.
Declaration
public float lastAxis { get; }
Property Value
| Type |
Description |
| System.Single |
|
lastChanged
If the float 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 float value difference between the previous update and update before that.
Note: Will only return non-zero if the action is also active.
Declaration
public float lastDelta { get; }
Property Value
| Type |
Description |
| System.Single |
|
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_Single.ActiveChangeHandler onActiveBindingChange
Event Type
onActiveChange
Event fires when the active state (ActionSet active and binding active) changes
Declaration
public event SteamVR_Action_Single.ActiveChangeHandler onActiveChange
Event Type
onAxis
Event fires when the value of the action is non-zero
Declaration
public event SteamVR_Action_Single.AxisHandler onAxis
Event Type
onChange
This event fires whenever the axis changes by more than the specified changeTolerance
Declaration
public event SteamVR_Action_Single.ChangeHandler onChange
Event Type
onUpdate
Event fires when the action is updated
Declaration
public event SteamVR_Action_Single.UpdateHandler onUpdate
Event Type
Implements