Class SteamVR_Action_Boolean_Source
Inheritance
Inherited Members
Namespace: Valve.VR
Assembly: Assembly-CSharp.dll
Syntax
public class SteamVR_Action_Boolean_Source : SteamVR_Action_In_Source, ISteamVR_Action_Boolean, ISteamVR_Action_In_Source, ISteamVR_Action_Source
  Fields
actionData
Declaration
protected InputDigitalActionData_t actionData
  Field Value
| Type | Description | 
|---|---|
| InputDigitalActionData_t | 
actionData_size
Declaration
protected static uint actionData_size
  Field Value
| Type | Description | 
|---|---|
| System.UInt32 | 
booleanAction
Declaration
protected SteamVR_Action_Boolean booleanAction
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Action_Boolean | 
lastActionData
Declaration
protected InputDigitalActionData_t lastActionData
  Field Value
| Type | Description | 
|---|---|
| InputDigitalActionData_t | 
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
changed
True when the action's state changed during the most recent update. Note: Will only return true if the action is also active.
Declaration
public override bool changed { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
Remarks
ActionSet is ignored since get is coming from the native struct.
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
lastChanged
The value of the action's 'changed' during the previous update
Declaration
public override bool lastChanged { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
Remarks
Always returns the previous update state. Set is ignored since get is coming from the native struct.
lastState
The value of the action's 'state' during the previous update
Declaration
public bool lastState { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Remarks
Always returns the previous update state
lastStateDown
The value of the action's 'stateDown' during the previous update
Declaration
public bool lastStateDown { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Remarks
Always returns the previous update state
lastStateUp
The value of the action's 'stateUp' during the previous update
Declaration
public bool lastStateUp { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Remarks
Always returns the previous update state
state
The current value of the boolean action. Note: Will only return true if the action is also active.
Declaration
public bool state { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
stateDown
True when the action's state changes from false to true. Note: Will only return true if the action is also active.
Declaration
public bool stateDown { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Remarks
Will only return true if the action is also active.
stateUp
True when the action's state changes from true to false. Note: Will only return true if the action is also active.
Declaration
public bool stateUp { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Remarks
Will only return true if the action is also active.
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
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
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_Boolean.ActiveChangeHandler onActiveBindingChange
  Event Type
| Type | Description | 
|---|---|
| SteamVR_Action_Boolean.ActiveChangeHandler | 
onActiveChange
Event fires when the active state (ActionSet active and binding active) changes
Declaration
public event SteamVR_Action_Boolean.ActiveChangeHandler onActiveChange
  Event Type
| Type | Description | 
|---|---|
| SteamVR_Action_Boolean.ActiveChangeHandler | 
onChange
Event fires when the state of the action changes from false to true or true to false
Declaration
public event SteamVR_Action_Boolean.ChangeHandler onChange
  Event Type
| Type | Description | 
|---|---|
| SteamVR_Action_Boolean.ChangeHandler | 
onState
Event fires when the state of the action is true and the action gets updated
Declaration
public event SteamVR_Action_Boolean.StateHandler onState
  Event Type
| Type | Description | 
|---|---|
| SteamVR_Action_Boolean.StateHandler | 
onStateDown
Event fires when the state of the action changes from false to true
Declaration
public event SteamVR_Action_Boolean.StateDownHandler onStateDown
  Event Type
| Type | Description | 
|---|---|
| SteamVR_Action_Boolean.StateDownHandler | 
onStateUp
Event fires when the state of the action changes from true to false
Declaration
public event SteamVR_Action_Boolean.StateUpHandler onStateUp
  Event Type
| Type | Description | 
|---|---|
| SteamVR_Action_Boolean.StateUpHandler | 
onUpdate
Event fires when the action is updated
Declaration
public event SteamVR_Action_Boolean.UpdateHandler onUpdate
  Event Type
| Type | Description | 
|---|---|
| SteamVR_Action_Boolean.UpdateHandler |