Project

General

Profile

« Previous | Next » 

Revision 15e5214c

Added by Leszek Koltunski over 2 years ago

Simplifications

View differences:

src/main/java/org/distorted/objectlib/main/ObjectControl.java
509 509

  
510 510
      mDensity = dm.densityDpi;
511 511

  
512
      mPreRender = new ObjectPreRender(view,actioner);
512
      mPreRender = new ObjectPreRender(act,this,actioner);
513 513
      mAct = new WeakReference<>(act);
514 514
      mActioner = actioner;
515 515
      }
......
560 560
      return mPreRender;
561 561
      }
562 562

  
563
///////////////////////////////////////////////////////////////////////////////////////////////////
564

  
565
    public void prepareDown()
566
      {
567
      mIsAutomatic = true;
568
      mPointer1 = 0;
569
      mPointer2 = INVALID_POINTER_ID;
570
      }
571

  
572
///////////////////////////////////////////////////////////////////////////////////////////////////
573

  
574
    public void prepareDown2()
575
      {
576
      mPointer2 = 0;
577
      }
578

  
579
///////////////////////////////////////////////////////////////////////////////////////////////////
580

  
581
    public void prepareUp()
582
      {
583
      mIsAutomatic = false;
584
      mPointer1 = INVALID_POINTER_ID;
585
      mPointer2 = INVALID_POINTER_ID;
586
      }
587

  
588
///////////////////////////////////////////////////////////////////////////////////////////////////
589

  
590
    public void prepareMove(float x1, float y1, float x2, float y2)
591
      {
592
      mX1 = x1;
593
      mY1 = y1;
594
      mX2 = x2;
595
      mY2 = y2;
596
      }
597

  
598 563
///////////////////////////////////////////////////////////////////////////////////////////////////
599 564

  
600 565
    public boolean onTouchEvent(MotionEvent event, int mode)

Also available in: Unified diff