C# Class Valve.VR.SteamVR_Action_Single

An analog action with a value generally from 0 to 1. Also provides a delta since the last update.
Inheritance: SteamVR_Action_In, ISteamVR_Action_Single, ISerializationCallbackReceiver
显示文件 Open project: Autofire/Execute-R Class Usage Examples

Public Methods

Method Description
AddOnActiveBindingChangeListener ( ActiveChangeHandler functionToCall, SteamVR_Input_Sources inputSource ) : void

Executes a function when the active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound

AddOnActiveChangeListener ( ActiveChangeHandler functionToCall, SteamVR_Input_Sources inputSource ) : void

Executes a function when the *functional* active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound, or when the ActionSet changes state.

AddOnAxisListener ( AxisHandler functionToCall, SteamVR_Input_Sources inputSource ) : void

Executes a function when the float value of the action is non-zero.

AddOnChangeListener ( ChangeHandler functionToCall, SteamVR_Input_Sources inputSource ) : void

Executes a function when the axis changes by more than the specified changeTolerance

AddOnUpdateListener ( UpdateHandler functionToCall, SteamVR_Input_Sources inputSource ) : void

Executes a function when the state of this action (with the specified inputSource) is updated.

GetAxis ( SteamVR_Input_Sources inputSource ) : float

The current float value of the action

GetAxisDelta ( SteamVR_Input_Sources inputSource ) : float

The float value difference between this update and the previous update.

GetLastAxis ( SteamVR_Input_Sources inputSource ) : float

The float value of the action from the previous update.

GetLastAxisDelta ( SteamVR_Input_Sources inputSource ) : float

The float value difference between the previous update and update before that.

ISerializationCallbackReceiver ( ) : void
RemoveOnActiveBindingChangeListener ( ActiveChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void

Stops executing the function setup by the corresponding AddListener

RemoveOnActiveChangeListener ( ActiveChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void

Stops executing a function when the *functional* active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound, or when the ActionSet changes state.

RemoveOnAxisListener ( AxisHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void

Stops executing the function setup by the corresponding AddListener

RemoveOnChangeListener ( ChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void

Stops executing the function setup by the corresponding AddListener

RemoveOnUpdateListener ( UpdateHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void

Stops executing the function setup by the corresponding AddListener

SteamVR_Action_Single ( ) : System

Method Details

AddOnActiveBindingChangeListener() public method

Executes a function when the active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound
public AddOnActiveBindingChangeListener ( ActiveChangeHandler functionToCall, SteamVR_Input_Sources inputSource ) : void
functionToCall ActiveChangeHandler A local function that receives the boolean action who's active state changes and the corresponding input source
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

AddOnActiveChangeListener() public method

Executes a function when the *functional* active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound, or when the ActionSet changes state.
public AddOnActiveChangeListener ( ActiveChangeHandler functionToCall, SteamVR_Input_Sources inputSource ) : void
functionToCall ActiveChangeHandler A local function that receives the boolean action who's active state changes and the corresponding input source
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

AddOnAxisListener() public method

Executes a function when the float value of the action is non-zero.
public AddOnAxisListener ( AxisHandler functionToCall, SteamVR_Input_Sources inputSource ) : void
functionToCall AxisHandler A local function that receives the boolean action who's state has changed, the corresponding input source, and the new value
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

AddOnChangeListener() public method

Executes a function when the axis changes by more than the specified changeTolerance
public AddOnChangeListener ( ChangeHandler functionToCall, SteamVR_Input_Sources inputSource ) : void
functionToCall ChangeHandler A local function that receives the boolean action who's state has changed, the corresponding input source, and the new value
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

AddOnUpdateListener() public method

Executes a function when the state of this action (with the specified inputSource) is updated.
public AddOnUpdateListener ( UpdateHandler functionToCall, SteamVR_Input_Sources inputSource ) : void
functionToCall UpdateHandler A local function that receives the boolean action who's state has changed, the corresponding input source, and the new value
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

GetAxis() public method

The current float value of the action
public GetAxis ( SteamVR_Input_Sources inputSource ) : float
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return float

GetAxisDelta() public method

The float value difference between this update and the previous update.
public GetAxisDelta ( SteamVR_Input_Sources inputSource ) : float
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return float

GetLastAxis() public method

The float value of the action from the previous update.
public GetLastAxis ( SteamVR_Input_Sources inputSource ) : float
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return float

GetLastAxisDelta() public method

The float value difference between the previous update and update before that.
public GetLastAxisDelta ( SteamVR_Input_Sources inputSource ) : float
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return float

ISerializationCallbackReceiver() public method

public ISerializationCallbackReceiver ( ) : void
return void

RemoveOnActiveBindingChangeListener() public method

Stops executing the function setup by the corresponding AddListener
public RemoveOnActiveBindingChangeListener ( ActiveChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void
functionToStopCalling ActiveChangeHandler The local function that you've setup to receive update events
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

RemoveOnActiveChangeListener() public method

Stops executing a function when the *functional* active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound, or when the ActionSet changes state.
public RemoveOnActiveChangeListener ( ActiveChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void
functionToStopCalling ActiveChangeHandler The local function that you've setup to receive update events
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

RemoveOnAxisListener() public method

Stops executing the function setup by the corresponding AddListener
public RemoveOnAxisListener ( AxisHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void
functionToStopCalling AxisHandler The local function that you've setup to receive update events
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

RemoveOnChangeListener() public method

Stops executing the function setup by the corresponding AddListener
public RemoveOnChangeListener ( ChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void
functionToStopCalling ChangeHandler The local function that you've setup to receive on change events
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

RemoveOnUpdateListener() public method

Stops executing the function setup by the corresponding AddListener
public RemoveOnUpdateListener ( UpdateHandler functionToStopCalling, SteamVR_Input_Sources inputSource ) : void
functionToStopCalling UpdateHandler The local function that you've setup to receive update events
inputSource SteamVR_Input_Sources The device you would like to get data from. Any if the action is not device specific.
return void

SteamVR_Action_Single() public method

public SteamVR_Action_Single ( ) : System
return System