Project

General

Profile

« Previous | Next » 

Revision e0b71e6e

Added by Leszek Koltunski over 2 years ago

Bandaged 3x3: implement object reset.

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorView.java
100 100
      return mRenderer;
101 101
      }
102 102

  
103
///////////////////////////////////////////////////////////////////////////////////////////////////
104

  
105
    public void resetCubits()
106
      {
107
      if( mTouchedIndex1>=0 ) mTouchControl.markCubit(mTouchedIndex1, BandagedCreatorRenderer.COLOR_DEFAULT);
108
      if( mTouchedIndex2>=0 ) mTouchControl.markCubit(mTouchedIndex2, BandagedCreatorRenderer.COLOR_DEFAULT);
109

  
110
      mTouchedIndex1 = -1;
111
      mTouchedIndex2 = -1;
112
      }
113

  
103 114
///////////////////////////////////////////////////////////////////////////////////////////////////
104 115

  
105 116
    public void setScreenSize(int width, int height)
......
114 125
    @Override
115 126
    public boolean onTouchEvent(MotionEvent event)
116 127
      {
128
      if( mRenderer.isBusy() ) return true;
129

  
117 130
      int action = event.getAction();
118 131
      int x = (int)event.getX();
119 132
      int y = (int)event.getY();

Also available in: Unified diff