public SteamVR_Action_Boolean vRThumbAnalClick; // When Button be pressed #endregion // Start is called before the first frame update void Start() { switch (vInputHardware) { default: // Occulus Touch if (vIsUsingLeft) { vLIndexClick.AddOnStateDownListener(IndexClicked, vHandType); vLIndexRest.AddOnUpdateListener(IndexRestUpdate, vHandType); vLIndexPress.AddOnUpdateListener(IndexPressUpdate, vHandType); vLMiddleClick.AddOnStateDownListener(MiddleClicked, vHandType); vLMiddleRest.AddOnUpdateListener(MiddleRestUpdate, vHandType); vLMiddlePress.AddOnUpdateListener(MiddlePressUpdate, vHandType); vLThumbX.AddOnStateDownListener(XAClicked, vHandType); vLThumbXRest.AddOnUpdateListener(XARestUpdate, vHandType); vLThumbY.AddOnStateDownListener(YBClicked, vHandType); vLThumbYRest.AddOnUpdateListener(YBRestUpdate, vHandType); vLThumbMenu.AddOnStateDownListener(MenuClicked, vHandType); vLThumbMenuRest.AddOnUpdateListener(MenuRestUpdate, vHandType); vLThumbAnal.AddOnUpdateListener(AnalAxis, vHandType); vLThumbAnalRest.AddOnUpdateListener(AnalRestUpdate, vHandType); vLThumbAnalClick.AddOnStateDownListener(AnalClicked, vHandType); } else { vRIndexClick.AddOnStateDownListener(IndexClicked, vHandType); vRIndexRest.AddOnUpdateListener(IndexRestUpdate, vHandType); vRIndexPress.AddOnUpdateListener(IndexPressUpdate, vHandType); vRMiddleClick.AddOnStateDownListener(MiddleClicked, vHandType); vRMiddleRest.AddOnUpdateListener(MiddleRestUpdate, vHandType); vRMiddlePress.AddOnUpdateListener(MiddlePressUpdate, vHandType); vRThumbA.AddOnStateDownListener(XAClicked, vHandType); vRThumbARest.AddOnUpdateListener(XARestUpdate, vHandType); vRThumbB.AddOnStateDownListener(YBClicked, vHandType); vRThumbBRest.AddOnUpdateListener(YBRestUpdate, vHandType); vRThumbAnal.AddOnUpdateListener(AnalAxis, vHandType); vRThumbAnalRest.AddOnUpdateListener(AnalRestUpdate, vHandType); vRThumbAnalClick.AddOnStateDownListener(AnalClicked, vHandType); } break; } // Set Buttons to funciton //vIndexTouch.AddOnUpdateListener(IndexTest, vHandType); //vThumbB.AddOnChangeListener(InputThumbChange, vHandType); //vIndexTouch.AddOnUpdateListener(IndexAEWDfTest, vHandType); }