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
파일 보기 프로젝트 열기: Autofire/Execute-R 1 사용 예제들

공개 메소드들

메소드 설명
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