AssemblyCSharp.WandController.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        void Update()
        {
            float t = wand.controllerState.rAxis [1].x;
            if (t > 0.03f) {
                lineFactory.setTriggerValue(t);
                if (!drawing) {
                    lineFactory.onClick();
                    drawing = true;
                }
            } else {
                if (drawing) {
                    lineFactory.onRelease();
                    drawing = false;
                }
            }
            if (wand.menuPressed) {
                if (!erasing) {
                    lineFactory.onRightClick();
                    erasing = true;
                }
            } else {
                if (erasing) {
                    lineFactory.onRelease();
                    erasing = false;
                }
            }
            float x = wand.controllerState.rAxis [0].x;
            float y = wand.controllerState.rAxis [0].y;
            trackpadCoords.Set (x, y);
        }