Show / Hide Table of Contents

    Class SteamVR_Action_Source_Map<SourceElement>

    Inheritance
    System.Object
    SteamVR_Action_Source_Map
    SteamVR_Action_Source_Map<SourceElement>
    SteamVR_Action_In_Source_Map<SourceElement>
    SteamVR_Action_Vibration_Source_Map
    Inherited Members
    SteamVR_Action_Source_Map.fullPath
    SteamVR_Action_Source_Map.handle
    SteamVR_Action_Source_Map.actionSet
    SteamVR_Action_Source_Map.direction
    SteamVR_Action_Source_Map.action
    SteamVR_Action_Source_Map.PreInitialize(SteamVR_Action, String, Boolean)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Valve.VR
    Assembly: Assembly-CSharp.dll
    Syntax
    public abstract class SteamVR_Action_Source_Map<SourceElement> : SteamVR_Action_Source_Map where SourceElement : SteamVR_Action_Source, new()
    Type Parameters
    Name Description
    SourceElement

    Fields

    sources

    Declaration
    protected Dictionary<SteamVR_Input_Sources, SourceElement> sources
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<SteamVR_Input_Sources, SourceElement>

    Properties

    Item[SteamVR_Input_Sources]

    Gets a reference to the action restricted to a certain input source. LeftHand or RightHand for example.

    Declaration
    public SourceElement this[SteamVR_Input_Sources inputSource] { get; }
    Parameters
    Type Name Description
    SteamVR_Input_Sources inputSource

    The device you would like data from

    Property Value
    Type Description
    SourceElement

    Methods

    GetSourceElementForIndexer(SteamVR_Input_Sources)

    Declaration
    protected virtual SourceElement GetSourceElementForIndexer(SteamVR_Input_Sources inputSource)
    Parameters
    Type Name Description
    SteamVR_Input_Sources inputSource
    Returns
    Type Description
    SourceElement

    Initialize()

    [Should not be called by user code] Initializes the individual sources as well as the base map itself. Gets the handle for the action from SteamVR and does any other SteamVR related setup that needs to be done

    Declaration
    public override void Initialize()
    Overrides
    SteamVR_Action_Source_Map.Initialize()

    OnAccessSource(SteamVR_Input_Sources)

    Declaration
    protected virtual void OnAccessSource(SteamVR_Input_Sources inputSource)
    Parameters
    Type Name Description
    SteamVR_Input_Sources inputSource

    PreinitializeMap(SteamVR_Input_Sources, SteamVR_Action)

    Declaration
    protected override void PreinitializeMap(SteamVR_Input_Sources inputSource, SteamVR_Action wrappingAction)
    Parameters
    Type Name Description
    SteamVR_Input_Sources inputSource
    SteamVR_Action wrappingAction
    Overrides
    SteamVR_Action_Source_Map.PreinitializeMap(SteamVR_Input_Sources, SteamVR_Action)
    In This Article
    • Fields
      • sources
    • Properties
      • Item[SteamVR_Input_Sources]
    • Methods
      • GetSourceElementForIndexer(SteamVR_Input_Sources)
      • Initialize()
      • OnAccessSource(SteamVR_Input_Sources)
      • PreinitializeMap(SteamVR_Input_Sources, SteamVR_Action)
    Back to top Copyright (c) Valve Corporation, All rights reserved.