MotionEventCompat.java revision 6ed40c1f86bcb172a1f0f069cde1c571a7781aee
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 /** 3076a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev * Synonym for {@link MotionEvent#AXIS_RELATIVE_X}. 3086a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev */ 3096a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev public static final int AXIS_RELATIVE_X = 27; 3106a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev 3116a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev /** 3126a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev * Synonym for {@link MotionEvent#AXIS_RELATIVE_Y}. 3136a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev */ 3146a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev public static final int AXIS_RELATIVE_Y = 28; 3156a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev 3166a867e166320b3727bb6d7e34bd3c55aa474d098Vladislav Kaznacheev /** 3174dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_1}. 3186ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3196ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_1} directly. 3204dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3216ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3224dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_1 = 32; 3234dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3244dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3254dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_2}. 3266ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3276ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_2} directly. 3284dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3296ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3304dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_2 = 33; 3314dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3324dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3334dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_3}. 3346ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3356ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_3} directly. 3364dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3376ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3384dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_3 = 34; 3394dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3404dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3414dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_4}. 3426ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3436ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_4} directly. 3444dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3456ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3464dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_4 = 35; 3474dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3484dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3494dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_5}. 3506ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3516ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_5} directly. 3524dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3536ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3544dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_5 = 36; 3554dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3564dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3574dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_6}. 3586ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3596ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_6} directly. 3604dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3616ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3624dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_6 = 37; 3634dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3644dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3654dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_7}. 3666ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3676ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_7} directly. 3684dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3696ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3704dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_7 = 38; 3714dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3724dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3734dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_8}. 3746ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3756ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_8} directly. 3764dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3776ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3784dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_8 = 39; 3794dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3804dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3814dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_9}. 3826ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3836ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_9} directly. 3844dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3856ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3864dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_9 = 40; 3874dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3884dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3894dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_10}. 3906ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3916ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_10} directly. 3924dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 3936ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 3944dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_10 = 41; 3954dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 3964dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 3974dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_11}. 3986ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 3996ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_11} directly. 4004dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 4016ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 4024dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_11 = 42; 4034dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 4044dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 4054dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_12}. 4066ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 4076ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_12} directly. 4084dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 4096ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 4104dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_12 = 43; 4114dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 4124dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 4134dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_13}. 4146ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 4156ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_13} directly. 4164dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 4176ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 4184dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_13 = 44; 4194dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 4204dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 4214dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_14}. 4226ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 4236ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_14} directly. 4244dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 4256ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 4264dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_14 = 45; 4274dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 4284dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 4294dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_15}. 4306ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 4316ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_15} directly. 4324dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 4336ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 4344dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_15 = 46; 4354dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 4364dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 4374dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Synonym for {@link MotionEvent#AXIS_GENERIC_16}. 4386ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 4396ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#AXIS_GENERIC_16} directly. 4404dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 4416ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 4424dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static final int AXIS_GENERIC_16 = 47; 4434dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 4444dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 4452196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev * Synonym for {@link MotionEvent#BUTTON_PRIMARY}. 4466ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 4476ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Use {@link MotionEvent#BUTTON_PRIMARY} directly. 4482196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev */ 4496ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 4502196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev public static final int BUTTON_PRIMARY = 1; 4512196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev 4522196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev /** 453eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Call {@link MotionEvent#getAction}, returning only the {@link #ACTION_MASK} 454eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * portion. 4556ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 4566ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Call {@link MotionEvent#getAction()} directly. This method will be 4576ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * removed in a future release. 458eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn */ 4596ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 460eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn public static int getActionMasked(MotionEvent event) { 4616ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas return event.getActionMasked(); 462eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn } 463eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn 464eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn /** 465eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Call {@link MotionEvent#getAction}, returning only the pointer index 4666ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * portion. 4676ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 4686ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Call {@link MotionEvent#getActionIndex()} directly. This method will be 4696ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * removed in a future release. 470eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn */ 4716ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 472eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn public static int getActionIndex(MotionEvent event) { 4736ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas return event.getActionIndex(); 474eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn } 475eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn 476eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn /** 477eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Call {@link MotionEvent#findPointerIndex(int)}. 478f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov * 47917d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * @deprecated Call {@link MotionEvent#findPointerIndex(int)} directly. This method will be 48017d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * removed in a future release. 481eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn */ 482f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov @Deprecated 483eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn public static int findPointerIndex(MotionEvent event, int pointerId) { 484f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov return event.findPointerIndex(pointerId); 485eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn } 486eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn 487eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn /** 488eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Call {@link MotionEvent#getPointerId(int)}. 489f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov * 49017d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * @deprecated Call {@link MotionEvent#getPointerId(int)} directly. This method will be 49117d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * removed in a future release. 492eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn */ 493f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov @Deprecated 494eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn public static int getPointerId(MotionEvent event, int pointerIndex) { 495f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov return event.getPointerId(pointerIndex); 496eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn } 497eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn 498eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn /** 499eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Call {@link MotionEvent#getX(int)}. 500f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov * 50117d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * @deprecated Call {@link MotionEvent#getX()} directly. This method will be 50217d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * removed in a future release. 503eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn */ 504f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov @Deprecated 505eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn public static float getX(MotionEvent event, int pointerIndex) { 506f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov return event.getX(pointerIndex); 507eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn } 508eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn 509eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn /** 510eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn * Call {@link MotionEvent#getY(int)}. 511f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov * 51217d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * @deprecated Call {@link MotionEvent#getY()} directly. This method will be 51317d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * removed in a future release. 514eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn */ 515f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov @Deprecated 516eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn public static float getY(MotionEvent event, int pointerIndex) { 517f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov return event.getY(pointerIndex); 518eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn } 5191ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell 5201ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell /** 5211ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell * The number of pointers of data contained in this event. Always 522f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov * 52317d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * @deprecated Call {@link MotionEvent#getPointerCount()} directly. This method will be 52417d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * removed in a future release. 5251ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell */ 526f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov @Deprecated 5271ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell public static int getPointerCount(MotionEvent event) { 528f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov return event.getPointerCount(); 5291ce805e30800bf2852fa5421b7277a18e089ee31Adam Powell } 5304dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 5314dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 5324dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Gets the source of the event. 5334dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * 5344dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @return The event source or {@link InputDeviceCompat#SOURCE_UNKNOWN} if unknown. 53517d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * @deprecated Call {@link MotionEvent#getSource()} directly. This method will be 53617d15d92db2288bd27b8710c68e5bc1b9b5945f0Kirill Grouchnikov * removed in a future release. 5374dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 538f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov @Deprecated 5394dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static int getSource(MotionEvent event) { 540f185f104c4786740765e549d535f9ba1052f96ccKirill Grouchnikov return event.getSource(); 5414dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar } 5424dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 5434dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 5442196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev * Determines whether the event is from the given source. 5452196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev * @param source The input source to check against. 5462196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev * @return Whether the event is from the given source. 5472196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev */ 5482196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev public static boolean isFromSource(MotionEvent event, int source) { 5491b3e9466b4c4d72f28bb4448672ef8bab19b6f3eKirill Grouchnikov return (event.getSource() & source) == source; 5502196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev } 5512196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev 5522196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev /** 5534dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Get axis value for the first pointer index (may be an 5544dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * arbitrary pointer identifier). 5554dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * 5564dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @param axis The axis identifier for the axis value to retrieve. 5574dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * 5584dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @see #AXIS_X 5594dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @see #AXIS_Y 5606ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 5616ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Call {@link MotionEvent#getAxisValue(int)} directly. This method will be 5626ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * removed in a future release. 5634dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 5646ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 5654dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static float getAxisValue(MotionEvent event, int axis) { 5666ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas return event.getAxisValue(axis); 5674dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar } 5684dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar 5694dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar /** 5704dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * Returns the value of the requested axis for the given pointer <em>index</em> 5714dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * (use {@link #getPointerId(MotionEvent, int)} to find the pointer identifier for this index). 5724dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * 5734dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @param axis The axis identifier for the axis value to retrieve. 5744dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @param pointerIndex Raw index of pointer to retrieve. Value may be from 0 5754dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * (the first pointer that is down) to {@link #getPointerCount(MotionEvent)}-1. 5764dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @return The value of the axis, or 0 if the axis is not available. 5774dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * 5784dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @see #AXIS_X 5794dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar * @see #AXIS_Y 5806ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * 5816ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Call {@link MotionEvent#getAxisValue(int, int)} directly. This method will be 5826ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * removed in a future release. 5834dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar */ 5846ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 5854dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar public static float getAxisValue(MotionEvent event, int axis, int pointerIndex) { 5866ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas return event.getAxisValue(axis, pointerIndex); 5874dbd11ef441f637f32edd585248da0c914622a38Yigit Boyar } 588c5847d13e40f5d52459f5c0dab32dc08f1a9a683Chris Banes 5892196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev /** 5906ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * @deprecated Call {@link MotionEvent#getButtonState()} directly. This method will be 5916ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas * removed in a future release. 5922196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev */ 5936ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas @Deprecated 5942196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev public static int getButtonState(MotionEvent event) { 5956ed40c1f86bcb172a1f0f069cde1c571a7781aeeAurimas Liutikas return event.getButtonState(); 5962196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev } 5972196f53d080334b4e5bb5c25fba1e40578f3588bVladislav Kaznacheev 598c5847d13e40f5d52459f5c0dab32dc08f1a9a683Chris Banes private MotionEventCompat() {} 599eedc67283a5a49dce86c625e54596dfdea9465a7Dianne Hackborn} 600