OverkillManatee / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

Field deprecated #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In MultiTouchHandler class
int pointerIndex=(event.getAction() & 
MotionEvent.ACTION_POINTER_ID_MASK)>>MotionEvent.ACTION_POINTER_ID_SHIFT;

ACTION_POINTER_ID_MASK & ACTION_POINTER_ID_SHIFT
it says both of these are deprecated. Why?

What version of the product are you using? On what operating system?
Build: v22.0.1-685705 (ADT version)
compiler API 16: 4.1(jellybean)
OS: windows XP SP3

Please provide any additional information below.

ACTION_POINTER_ID_MASK & ACTION_POINTER_ID_SHIFT part stroked out.
It says deprecated.
Can Anybody help me out with the issue? 

Original issue reported on code.google.com by royatwor...@gmail.com on 22 Jun 2013 at 12:24

GoogleCodeExporter commented 9 years ago
Use instead:
ACTION_POINTER_INDEX_MASK
ACTION_POINTER_INDEX_SHIFT

Original comment by carlosma...@gmail.com on 16 Jul 2013 at 9:07

GoogleCodeExporter commented 9 years ago
Change "ID" to "INDEX".

Original comment by runnings...@gmail.com on 5 Nov 2014 at 5:48