Interface ISteamVR_Action_In
Inherited Members
Namespace: Valve.VR
Assembly: Assembly-CSharp.dll
Syntax
public interface ISteamVR_Action_In : ISteamVR_Action, ISteamVR_Action_In_Source, ISteamVR_Action_Source
Methods
GetActiveDevice(SteamVR_Input_Sources)
The input source that triggered the action to be updated last
Declaration
SteamVR_Input_Sources GetActiveDevice(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
SteamVR_Input_Sources |
GetChanged(SteamVR_Input_Sources)
Indicates whether or not the data for this action and specified input source has changed since the last update. Determined by SteamVR or 'changeTolerance'.
Declaration
bool GetChanged(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
System.Boolean |
GetDeviceIndex(SteamVR_Input_Sources)
Gets the device index for the controller this action is bound to. This can be used for render models or the pose tracking system.
Declaration
uint GetDeviceIndex(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
System.UInt32 |
GetLocalizedOrigin(SteamVR_Input_Sources)
Gets the localized full name of the device that the action was updated by. ex: "Left Hand Vive Controller Trackpad"
Declaration
string GetLocalizedOrigin(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
System.String |
GetLocalizedOriginPart(SteamVR_Input_Sources, EVRInputStringBits[])
Gets the localized name of the device that the action corresponds to. Include as many EVRInputStringBits as you want to add to the localized string
Declaration
string GetLocalizedOriginPart(SteamVR_Input_Sources inputSource, params EVRInputStringBits[] localizedParts)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | |
EVRInputStringBits[] | localizedParts |
|
Returns
Type | Description |
---|---|
System.String |
GetRenderModelComponentName(SteamVR_Input_Sources)
The name of the component on the render model that caused the action to be updated (not localized)
Declaration
string GetRenderModelComponentName(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
System.String |
UpdateValues()
[Should not be called by user code] Updates the data for all the input sources the system has detected need to be updated.
Declaration
void UpdateValues()