Пример #1
0
 private void Awake()
 {
     inputHandler = new SteamInputHandler(
         inputSource,
         SteamInputHandler.newKeyValuePair(showUIAction, OnShowActionChange)
         );
     inputHandler.RegisterActions();
 }
Пример #2
0
        protected override void OnEnable()
        {
            base.OnEnable();

            inputHandler = new SteamInputHandler(
                inputSource,
                SteamInputHandler.newKeyValuePair(changeSliderAction, OnChangeSliderAction),
                SteamInputHandler.newKeyValuePair(touchSliderAction, OnSliderTouched),
                SteamInputHandler.newKeyValuePair(clickedSliderAction, OnSliderClicked)
                );

            inputHandler.RegisterActions();
        }
Пример #3
0
        protected override void OnEnable()
        {
            base.OnEnable();

            inputHandler = new SteamInputHandler(
                inputSource,
                SteamInputHandler.newKeyValuePair(clickAction, OnClickAction),
                SteamInputHandler.newKeyValuePair(touchpadAction, OnTrackpadPositionChanged),
                SteamInputHandler.newKeyValuePair(touchedTouchpadAction, OnTouchpadTouched)
                );

            inputHandler.RegisterActions();
        }
Пример #4
0
        protected override void Awake()
        {
            base.Awake();
            player     = GetComponentInParent <TactilePlayer>();
            timeline   = player.timeline;
            hmdDisplay = GetComponentInChildren <HeadmountedDisplay>();

            leftInputHandler = new SteamInputHandler(
                SteamVR_Input_Sources.LeftHand,
                SteamInputHandler.newKeyValuePair(selectStrokeAction, OnStrokeSelectedClicked)
                );

            anyInputHandler = new SteamInputHandler(
                SteamVR_Input_Sources.Any,
                SteamInputHandler.newKeyValuePair(changePaintingToolAction, OnChangePaintingToolClicked)
                );
        }