1eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn/*
2eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Copyright (C) 2011 The Android Open Source Project
3eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn *
4eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Licensed under the Apache License, Version 2.0 (the "License");
5eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * you may not use this file except in compliance with the License.
6eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * You may obtain a copy of the License at
7eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn *
8eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn *      http://www.apache.org/licenses/LICENSE-2.0
9eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn *
10eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Unless required by applicable law or agreed to in writing, software
11eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * distributed under the License is distributed on an "AS IS" BASIS,
12eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * See the License for the specific language governing permissions and
14eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * limitations under the License.
15eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn */
16eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
17eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackbornpackage android.support.v4.view;
18eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
19eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackbornimport android.view.MotionEvent;
20eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
21eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn/**
220574ca37da4619afe4e26753f5a1b4de314b6565Svetoslav Ganov * Helper for accessing features in {@link MotionEvent} introduced
230574ca37da4619afe4e26753f5a1b4de314b6565Svetoslav Ganov * after API level 4 in a backwards compatible fashion.
24eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn */
25c5847d13e40f5d52459f5c0dab32dc08f1a9a683Chris Banespublic final class MotionEventCompat {
26eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
27eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Synonym for {@link MotionEvent#ACTION_MASK}.
286ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
296ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_MASK} directly.
30eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
316ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
32eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static final int ACTION_MASK = 0xff;
33eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
34eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
35eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Synonym for {@link MotionEvent#ACTION_POINTER_DOWN}.
366ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
376ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_POINTER_DOWN} directly.
38eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
396ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
40eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static final int ACTION_POINTER_DOWN = 5;
41eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
42eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
43eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Synonym for {@link MotionEvent#ACTION_POINTER_UP}.
446ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
456ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_POINTER_UP} directly.
46eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
476ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
48eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static final int ACTION_POINTER_UP = 6;
49eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
50eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
51eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Synonym for {@link MotionEvent#ACTION_HOVER_MOVE}.
526ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
536ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_HOVER_MOVE} directly.
54eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
556ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
56eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static final int ACTION_HOVER_MOVE = 7;
57eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
58eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
59eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Synonym for {@link MotionEvent#ACTION_SCROLL}.
606ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
616ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_SCROLL} directly.
62eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
636ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
64eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static final int ACTION_SCROLL = 8;
65eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
66eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
67eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Synonym for {@link MotionEvent#ACTION_POINTER_INDEX_MASK}.
686ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
696ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_POINTER_INDEX_MASK} directly.
70eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
716ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
72eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static final int ACTION_POINTER_INDEX_MASK  = 0xff00;
73eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
74eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
75eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Synonym for {@link MotionEvent#ACTION_POINTER_INDEX_SHIFT}.
766ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
776ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_POINTER_INDEX_SHIFT} directly.
78eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
796ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
80eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static final int ACTION_POINTER_INDEX_SHIFT = 8;
81eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
82eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
834dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#ACTION_HOVER_ENTER}.
846ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
856ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_HOVER_ENTER} directly.
86dc5487a46b75572fa9120b22e89487c0178ff0a0Svetoslav Ganov     */
876ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
88dc5487a46b75572fa9120b22e89487c0178ff0a0Svetoslav Ganov    public static final int ACTION_HOVER_ENTER = 9;
89dc5487a46b75572fa9120b22e89487c0178ff0a0Svetoslav Ganov
90dc5487a46b75572fa9120b22e89487c0178ff0a0Svetoslav Ganov    /**
914dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#ACTION_HOVER_EXIT}.
926ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
936ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#ACTION_HOVER_EXIT} directly.
94dc5487a46b75572fa9120b22e89487c0178ff0a0Svetoslav Ganov     */
956ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
96dc5487a46b75572fa9120b22e89487c0178ff0a0Svetoslav Ganov    public static final int ACTION_HOVER_EXIT = 10;
97dc5487a46b75572fa9120b22e89487c0178ff0a0Svetoslav Ganov
98dc5487a46b75572fa9120b22e89487c0178ff0a0Svetoslav Ganov    /**
994dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_X}.
1006ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1016ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_X} directly.
1024dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1036ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1044dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_X = 0;
1054dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1064dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1074dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_Y}.
1086ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1096ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_Y} directly.
1104dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1116ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1124dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_Y = 1;
1134dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1144dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1154dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_PRESSURE}.
1166ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1176ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_PRESSURE} directly.
1184dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1196ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1204dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_PRESSURE = 2;
1214dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1224dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1234dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_SIZE}.
1246ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1256ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_SIZE} directly.
1264dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1276ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1284dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_SIZE = 3;
1294dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1304dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1314dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_TOUCH_MAJOR}.
1326ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1336ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_TOUCH_MAJOR} directly.
1344dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1356ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1364dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_TOUCH_MAJOR = 4;
1374dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1384dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1394dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_TOUCH_MINOR}.
1406ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1416ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_TOUCH_MINOR} directly.
1424dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1436ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1444dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_TOUCH_MINOR = 5;
1454dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1464dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1474dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_TOOL_MAJOR}.
1486ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1496ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_TOOL_MAJOR} directly.
1504dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1516ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1524dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_TOOL_MAJOR = 6;
1534dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1544dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1554dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_TOOL_MINOR}.
1566ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1576ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_TOOL_MINOR} directly.
1584dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1596ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1604dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_TOOL_MINOR = 7;
1614dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1624dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1634dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_ORIENTATION}.
1646ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1656ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_ORIENTATION} directly.
1664dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1676ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1684dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_ORIENTATION = 8;
1694dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1704dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1714dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_VSCROLL}.
1726ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1736ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_VSCROLL} directly.
1744dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1756ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1764dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_VSCROLL = 9;
1774dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1784dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1794dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_HSCROLL}.
1806ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1816ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_HSCROLL} directly.
1824dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1836ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1844dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_HSCROLL = 10;
1854dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1864dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1874dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_Z}.
1886ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1896ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_Z} directly.
1904dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1916ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
1924dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_Z = 11;
1934dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
1944dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
1954dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_RX}.
1966ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
1976ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_RX} directly.
1984dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
1996ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2004dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_RX = 12;
2014dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2024dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2034dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_RY}.
2046ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2056ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_RY} directly.
2064dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2076ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2084dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_RY = 13;
2094dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2104dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2114dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_RZ}.
2126ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2136ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_RZ} directly.
2144dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2156ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2164dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_RZ = 14;
2174dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2184dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2194dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_HAT_X}.
2206ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2216ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_HAT_X} directly.
2224dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2236ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2244dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_HAT_X = 15;
2254dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2264dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2274dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_HAT_Y}.
2286ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2296ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_HAT_Y} directly.
2304dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2316ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2324dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_HAT_Y = 16;
2334dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2344dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2354dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_LTRIGGER}.
2366ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2376ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_LTRIGGER} directly.
2384dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2396ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2404dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_LTRIGGER = 17;
2414dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2424dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2434dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_RTRIGGER}.
2446ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2456ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_RTRIGGER} directly.
2464dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2476ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2484dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_RTRIGGER = 18;
2494dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2504dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2514dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_THROTTLE}.
2526ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2536ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_THROTTLE} directly.
2544dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2556ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2564dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_THROTTLE = 19;
2574dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2584dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2594dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_RUDDER}.
2606ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2616ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_RUDDER} directly.
2624dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2636ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2644dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_RUDDER = 20;
2654dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2664dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2674dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_WHEEL}.
2686ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2696ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_WHEEL} directly.
2704dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2716ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2724dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_WHEEL = 21;
2734dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2744dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2754dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GAS}.
2766ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2776ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GAS} directly.
2784dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2796ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2804dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GAS = 22;
2814dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2824dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2834dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_BRAKE}.
2846ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2856ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_BRAKE} directly.
2864dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2876ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2884dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_BRAKE = 23;
2894dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2904dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2914dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_DISTANCE}.
2926ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
2936ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_DISTANCE} directly.
2944dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
2956ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
2964dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_DISTANCE = 24;
2974dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
2984dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
2994dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_TILT}.
3006ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3016ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_TILT} directly.
3024dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3036ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3044dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_TILT = 25;
3054dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3064dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
307a1f3f663034d903cb1a7036defa79bf462fca61cAaron Whyte     * Synonym for {@link MotionEvent#AXIS_SCROLL}.
308a1f3f663034d903cb1a7036defa79bf462fca61cAaron Whyte     */
309a1f3f663034d903cb1a7036defa79bf462fca61cAaron Whyte    public static final int AXIS_SCROLL = 26;
310a1f3f663034d903cb1a7036defa79bf462fca61cAaron Whyte
311a1f3f663034d903cb1a7036defa79bf462fca61cAaron Whyte    /**
3126a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev     * Synonym for {@link MotionEvent#AXIS_RELATIVE_X}.
3136a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev     */
3146a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev    public static final int AXIS_RELATIVE_X = 27;
3156a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev
3166a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev    /**
3176a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev     * Synonym for {@link MotionEvent#AXIS_RELATIVE_Y}.
3186a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev     */
3196a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev    public static final int AXIS_RELATIVE_Y = 28;
3206a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev
3216a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev    /**
3224dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_1}.
3236ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3246ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_1} directly.
3254dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3266ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3274dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_1 = 32;
3284dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3294dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3304dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_2}.
3316ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3326ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_2} directly.
3334dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3346ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3354dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_2 = 33;
3364dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3374dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3384dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_3}.
3396ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3406ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_3} directly.
3414dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3426ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3434dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_3 = 34;
3444dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3454dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3464dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_4}.
3476ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3486ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_4} directly.
3494dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3506ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3514dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_4 = 35;
3524dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3534dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3544dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_5}.
3556ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3566ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_5} directly.
3574dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3586ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3594dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_5 = 36;
3604dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3614dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3624dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_6}.
3636ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3646ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_6} directly.
3654dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3666ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3674dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_6 = 37;
3684dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3694dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3704dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_7}.
3716ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3726ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_7} directly.
3734dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3746ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3754dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_7 = 38;
3764dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3774dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3784dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_8}.
3796ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3806ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_8} directly.
3814dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3826ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3834dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_8 = 39;
3844dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3854dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3864dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_9}.
3876ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3886ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_9} directly.
3894dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3906ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3914dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_9 = 40;
3924dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
3934dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
3944dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_10}.
3956ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
3966ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_10} directly.
3974dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
3986ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
3994dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_10 = 41;
4004dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
4014dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
4024dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_11}.
4036ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4046ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_11} directly.
4054dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
4066ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
4074dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_11 = 42;
4084dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
4094dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
4104dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_12}.
4116ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4126ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_12} directly.
4134dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
4146ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
4154dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_12 = 43;
4164dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
4174dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
4184dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_13}.
4196ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4206ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_13} directly.
4214dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
4226ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
4234dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_13 = 44;
4244dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
4254dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
4264dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_14}.
4276ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4286ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_14} directly.
4294dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
4306ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
4314dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_14 = 45;
4324dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
4334dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
4344dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_15}.
4356ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4366ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_15} directly.
4374dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
4386ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
4394dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_15 = 46;
4404dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
4414dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
4424dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Synonym for {@link MotionEvent#AXIS_GENERIC_16}.
4436ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4446ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#AXIS_GENERIC_16} directly.
4454dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
4466ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
4474dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static final int AXIS_GENERIC_16 = 47;
4484dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
4494dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
4502196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev     * Synonym for {@link MotionEvent#BUTTON_PRIMARY}.
4516ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4526ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Use {@link MotionEvent#BUTTON_PRIMARY} directly.
4532196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev     */
4546ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
4552196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev    public static final int BUTTON_PRIMARY = 1;
4562196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev
4572196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev    /**
458eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Call {@link MotionEvent#getAction}, returning only the {@link #ACTION_MASK}
459eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * portion.
4606ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4616ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Call {@link MotionEvent#getAction()} directly. This method will be
4626ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * removed in a future release.
463eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
4646ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
465eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static int getActionMasked(MotionEvent event) {
4666ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas        return event.getActionMasked();
467eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    }
468eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
469eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
470eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Call {@link MotionEvent#getAction}, returning only the pointer index
4716ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * portion.
4726ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
4736ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Call {@link MotionEvent#getActionIndex()} directly. This method will be
4746ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * removed in a future release.
475eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
4766ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
477eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static int getActionIndex(MotionEvent event) {
4786ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas        return event.getActionIndex();
479eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    }
480eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
481eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
482eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Call {@link MotionEvent#findPointerIndex(int)}.
483f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov     *
48417d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * @deprecated Call {@link MotionEvent#findPointerIndex(int)} directly. This method will be
48517d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * removed in a future release.
486eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
487f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov    @Deprecated
488eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static int findPointerIndex(MotionEvent event, int pointerId) {
489f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov        return event.findPointerIndex(pointerId);
490eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    }
491eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
492eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
493eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Call {@link MotionEvent#getPointerId(int)}.
494f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov     *
49517d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * @deprecated Call {@link MotionEvent#getPointerId(int)} directly. This method will be
49617d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * removed in a future release.
497eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
498f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov    @Deprecated
499eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static int getPointerId(MotionEvent event, int pointerIndex) {
500f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov        return event.getPointerId(pointerIndex);
501eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    }
502eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
503eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
504eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Call {@link MotionEvent#getX(int)}.
505f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov     *
50617d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * @deprecated Call {@link MotionEvent#getX()} directly. This method will be
50717d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * removed in a future release.
508eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
509f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov    @Deprecated
510eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static float getX(MotionEvent event, int pointerIndex) {
511f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov        return event.getX(pointerIndex);
512eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    }
513eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn
514eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    /**
515eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     * Call {@link MotionEvent#getY(int)}.
516f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov     *
51717d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * @deprecated Call {@link MotionEvent#getY()} directly. This method will be
51817d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * removed in a future release.
519eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn     */
520f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov    @Deprecated
521eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    public static float getY(MotionEvent event, int pointerIndex) {
522f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov        return event.getY(pointerIndex);
523eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn    }
5241ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell
5251ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell    /**
5261ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell     * The number of pointers of data contained in this event.  Always
527f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov     *
52817d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * @deprecated Call {@link MotionEvent#getPointerCount()} directly. This method will be
52917d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * removed in a future release.
5301ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell     */
531f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov    @Deprecated
5321ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell    public static int getPointerCount(MotionEvent event) {
533f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov        return event.getPointerCount();
5341ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell    }
5354dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
5364dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
5374dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Gets the source of the event.
5384dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     *
5394dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @return The event source or {@link InputDeviceCompat#SOURCE_UNKNOWN} if unknown.
54017d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * @deprecated Call {@link MotionEvent#getSource()} directly. This method will be
54117d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov     * removed in a future release.
5424dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
543f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov    @Deprecated
5444dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static int getSource(MotionEvent event) {
545f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov        return event.getSource();
5464dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    }
5474dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
5484dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
5492196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev     * Determines whether the event is from the given source.
5502196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev     * @param source The input source to check against.
5512196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev     * @return Whether the event is from the given source.
5522196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev     */
5532196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev    public static boolean isFromSource(MotionEvent event, int source) {
5541b3e9466b4c4d72f28bb4448672ef8bab19b6f3eKirill Grouchnikov        return (event.getSource() & source) == source;
5552196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev    }
5562196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev
5572196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev    /**
5584dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Get axis value for the first pointer index (may be an
5594dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * arbitrary pointer identifier).
5604dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     *
5614dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @param axis The axis identifier for the axis value to retrieve.
5624dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     *
5634dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @see #AXIS_X
5644dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @see #AXIS_Y
5656ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
5666ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Call {@link MotionEvent#getAxisValue(int)} directly. This method will be
5676ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * removed in a future release.
5684dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
5696ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
5704dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static float getAxisValue(MotionEvent event, int axis) {
5716ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas        return event.getAxisValue(axis);
5724dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    }
5734dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar
5744dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    /**
5754dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * Returns the value of the requested axis for the given pointer <em>index</em>
5764dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * (use {@link #getPointerId(MotionEvent, int)} to find the pointer identifier for this index).
5774dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     *
5784dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @param axis The axis identifier for the axis value to retrieve.
5794dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @param pointerIndex Raw index of pointer to retrieve.  Value may be from 0
5804dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * (the first pointer that is down) to {@link #getPointerCount(MotionEvent)}-1.
5814dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @return The value of the axis, or 0 if the axis is not available.
5824dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     *
5834dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @see #AXIS_X
5844dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     * @see #AXIS_Y
5856ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     *
5866ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Call {@link MotionEvent#getAxisValue(int, int)} directly. This method will be
5876ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * removed in a future release.
5884dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar     */
5896ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
5904dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    public static float getAxisValue(MotionEvent event, int axis, int pointerIndex) {
5916ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas        return event.getAxisValue(axis, pointerIndex);
5924dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar    }
593c5847d13e40f5d52459f5c0dab32dc08f1a9a683Chris Banes
5942196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev    /**
5956ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * @deprecated Call {@link MotionEvent#getButtonState()} directly. This method will be
5966ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas     * removed in a future release.
5972196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev     */
5986ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas    @Deprecated
5992196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev    public static int getButtonState(MotionEvent event) {
6006ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas        return event.getButtonState();
6012196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev    }
6022196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev
603c5847d13e40f5d52459f5c0dab32dc08f1a9a683Chris Banes    private MotionEventCompat() {}
604eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn}
605