Created
July 16, 2020 19:20
-
-
Save MrCrambo/9836e919e1b6a819dd8b14829179428d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A pressed gesture has started, the | |
* motion contains the initial starting location. | |
*/ | |
public static final int ACTION_DOWN = 0; | |
/** | |
* A pressed gesture has finished, the | |
* motion contains the final release location as well as any intermediate | |
* points since the last down or move event. | |
*/ | |
public static final int ACTION_UP = 1; | |
/** | |
* A change has happened during a | |
* press gesture (between ACTION_DOWN and ACTION_UP). | |
* The motion contains the most recent point, as well as any intermediate | |
* points since the last down or move event. | |
*/ | |
public static final int ACTION_MOVE = 2; | |
/** | |
* The current gesture has been aborted. | |
* You will not receive any more points in it. You should treat this as | |
* an up event, but not perform any action that you normally would. | |
*/ | |
public static final int ACTION_CANCEL = 3; | |
/** | |
* A movement has happened outside of the | |
* normal bounds of the UI element. This does not provide a full gesture, | |
* but only the initial location of the movement/touch. | |
*/ | |
public static final int ACTION_OUTSIDE = 4; | |
/** | |
* A non-primary pointer has gone down. The bits in | |
* ACTION_POINTER_ID_MASK indicate which pointer changed. | |
*/ | |
public static final int ACTION_POINTER_DOWN = 5; | |
/** | |
* A non-primary pointer has gone up. The bits in | |
* ACTION_POINTER_ID_MASK indicate which pointer changed. | |
*/ | |
public static final int ACTION_POINTER_UP = 6; | |
/** | |
* Bit mask of the parts of the action code that are the action itself. | |
*/ | |
public static final int ACTION_MASK = 0xff; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment