C# Класс Valve.VR.SteamVR_Action_Single

An analog action with a value generally from 0 to 1. Also provides a delta since the last update.
Наследование: SteamVR_Action_In, ISteamVR_Action_Single, ISerializationCallbackReceiver
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddOnActiveBindingChangeListener() публичный Метод

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.
Результат void

AddOnActiveChangeListener() публичный Метод

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.
Результат void

AddOnAxisListener() публичный Метод

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.
Результат void

AddOnChangeListener() публичный Метод

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.
Результат void

AddOnUpdateListener() публичный Метод

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.
Результат void

GetAxis() публичный Метод

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.
Результат float

GetAxisDelta() публичный Метод

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.
Результат float

GetLastAxis() публичный Метод

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.
Результат float

GetLastAxisDelta() публичный Метод

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.
Результат float

ISerializationCallbackReceiver() публичный Метод

public ISerializationCallbackReceiver ( ) : void
Результат void

RemoveOnActiveBindingChangeListener() публичный Метод

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.
Результат void

RemoveOnActiveChangeListener() публичный Метод

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.
Результат void

RemoveOnAxisListener() публичный Метод

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.
Результат void

RemoveOnChangeListener() публичный Метод

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.
Результат void

RemoveOnUpdateListener() публичный Метод

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.
Результат void

SteamVR_Action_Single() публичный Метод

public SteamVR_Action_Single ( ) : System
Результат System