Jogamp
Merge remote-tracking branch 'rsantina/master'
authorSven Gothel <sgothel@jausoft.com>
Tue, 9 Aug 2011 18:22:34 +0000 (20:22 +0200)
committerSven Gothel <sgothel@jausoft.com>
Tue, 9 Aug 2011 18:22:34 +0000 (20:22 +0200)
1  2 
src/newt/classes/jogamp/newt/driver/android/event/AndroidNewtEventFactory.java

@@@ -127,23 -127,8 +127,8 @@@ public class AndroidNewtEventFactory 
          }
          return null;
      }
-     
-     public static final int androidActionPointer2Newt(android.view.MotionEvent event) {
-         int action = event.getAction();
-         int androidMods = event.getMetaState();
-         
-         if ((android.view.MotionEvent.ACTION_POINTER_UP != action) 
-                 ||  (android.view.MotionEvent.ACTION_POINTER_DOWN != action)) {
-             return 0;
-         }
-         
-         int pointerIndex = (androidMods & android.view.MotionEvent.ACTION_POINTER_INDEX_MASK);
-         pointerIndex = pointerIndex >> android.view.MotionEvent.ACTION_POINTER_INDEX_SHIFT;
-         
-         return event.getPointerId(pointerIndex); 
-     }
  
 -    static final com.jogamp.newt.event.MouseEvent createMouseEvent(android.view.MotionEvent event, com.jogamp.newt.Window newtSource) {
 +    public static final com.jogamp.newt.event.MouseEvent createMouseEvent(android.view.MotionEvent event, com.jogamp.newt.Window newtSource) {
          int type = eventTypeANDROID2NEWT.get(event.getAction());
          if(0xFFFFFFFF != type) {
              int rotation = 0;
http://JogAmp.org git info: FAQ, tutorial and man pages.