ApiLevel5.java :  » UnTagged » artgameweekend-art-project » org » artags » android » app » apilevels » Android Open Source

Android Open Source » UnTagged » artgameweekend art project 
artgameweekend art project » org » artags » android » app » apilevels » ApiLevel5.java
/* Copyright (c) 2010 ARTags Project owners (see http://www.artags.org)
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.artags.android.app.apilevels;

import android.view.MotionEvent;

/**
 *
 * @author Pierre Gros
 */
public class ApiLevel5 {
    public static float getX(MotionEvent event, int pointerIndex)
    {
        return event.getX(pointerIndex);
    }

    public static float getY(MotionEvent event, int pointerIndex)
    {
        return event.getY(pointerIndex);
    }

    public static final int ACTION_POINTER_DOWN = MotionEvent.ACTION_POINTER_DOWN;
    public static final int ACTION_POINTER_2_DOWN = MotionEvent.ACTION_POINTER_2_DOWN;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.