Project

General

Profile

« Previous | Next » 

Revision 5dcfe278

Added by Leszek Koltunski over 2 years ago

Make the touch control in OSInterface more like in the previous version - before it was occasionally crashing...

View differences:

src/main/java/org/distorted/os/OSInterface.java
88 88
    else if( index==mEvent.findPointerIndex(mPointer2) ) mPointer2 = INVALID_POINTER_ID;
89 89
    }
90 90

  
91
///////////////////////////////////////////////////////////////////////////////////////////////////
92

  
93
  public int getFirstPointerIndex()
94
    {
95
    return mEvent.findPointerIndex(mPointer1);
96
    }
97

  
98
///////////////////////////////////////////////////////////////////////////////////////////////////
99

  
100
  public int getSecondPointerIndex()
101
    {
102
    return mEvent.findPointerIndex(mPointer2);
103
    }
104

  
91 105
///////////////////////////////////////////////////////////////////////////////////////////////////
92 106

  
93 107
  public boolean isFirstPressed()
......
161 175
    return mEvent.getY(index);
162 176
    }
163 177

  
178
///////////////////////////////////////////////////////////////////////////////////////////////////
179

  
180
  public float getX(int index)
181
    {
182
    return mEvent.getX(index);
183
    }
184

  
185
///////////////////////////////////////////////////////////////////////////////////////////////////
186

  
187
  public float getY(int index)
188
    {
189
    return mEvent.getY(index);
190
    }
191

  
164 192
///////////////////////////////////////////////////////////////////////////////////////////////////
165 193
// LOCAL FILES
166 194
///////////////////////////////////////////////////////////////////////////////////////////////////
......
232 260
    }
233 261

  
234 262
///////////////////////////////////////////////////////////////////////////////////////////////////
235
// PREFERENCES
263
// STRINGS
236 264
///////////////////////////////////////////////////////////////////////////////////////////////////
237 265

  
238 266
  public String getString(int id)

Also available in: Unified diff