cataluna84 / beginnginandroidgames2

Automatically exported from code.google.com/p/beginnginandroidgames2
0 stars 0 forks source link

Deprecated code in game framework #2 #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Continuing on...

in MultiTouchHandler.java , in your framework implementation, you need to 
change:

int pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> 
MotionEvent.ACTION_POINTER_ID_SHIFT;

to

int pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 
>> MotionEvent.ACTION_POINTER_INDEX_SHIFT;

well, this is as of Jan 9, 2013 anyways. if you don't believe me, look at 
http://developer.android.com/reference/android/view/MotionEvent.html

Original issue reported on code.google.com by davidtia...@gmail.com on 9 Jan 2013 at 8:47