Пример #1
0
    private void ImUsingTouchControls()
    {
        if (!PD.usingMouse || PD.isDemo)
        {
            return;
        }
        if (tutorialAssist != null)
        {
            ImUsingTouchControlsInATutorial();
            return;
        }
        int change = touchHandler.HandleUpdate(clicker);

        cursor1.setY(touchHandler.rowY);
        if (touchHandler.aboveEverything)
        {
            board1.shiftall = true;
        }
        if (!touchHandler.aboveEverything || change == 0)
        {
            cursor1.setX(touchHandler.rowX);
        }
        if (change != 0)
        {
            board1.shifting = change;
        }
        else if (touchHandler.launching)
        {
            board1.SetLaunchInfoForLaunch();
        }
    }