GetDeviceIndex() public static method

public static GetDeviceIndex ( DeviceRelation relation, TrackedDeviceClass deviceClass = TrackedDeviceClass.Controller, int relativeTo = (int)OpenVR.k_unTrackedDeviceIndex_Hmd ) : int
relation DeviceRelation
deviceClass TrackedDeviceClass
relativeTo int
return int
 private static bool OpenVRRightGrip()
 {
     return(SteamVR_Controller.Input(SteamVR_Controller.GetDeviceIndex(SteamVR_Controller.DeviceRelation.Rightmost)).GetPress(Valve.VR.EVRButtonId.k_EButton_Grip));
 }