| Modifier and Type | Field and Description |
|---|---|
| private TouchPipeline | |
| private final GestureSupport | |
| private static TouchInput | |
| private TouchState | |
| private final TouchInputSupport | |
| private final int | touchRadius
This property determines the sensitivity of move events from touch. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private int | countEvents(TouchState newState)
Calculate the number of touch point events that will be sent by dispatchPoints(). |
| private void | |
| pack-priv TouchPipeline | |
| pack-priv static TouchInput | |
| pack-priv void | getState(TouchState
target into which to copy the touch state result)Copies the current state into the TouchState provided. |
| pack-priv int | |
| private void | |
| private void | |
| private void | |
| private void | postTouchEvent(TouchState
The state for which to process all points state, int The type of TouchEvent to send (e.g. TouchEvent.PRESSED) eventType)Sends the same event type for all points in the given state |
| private void | postTouchEvent(MonocleWindow
The current Window window, View The current View view, TouchState The updated touch points newState)Sends updated touch points within the same View as last processed touch points. |
| pack-priv void | setState(TouchState
The updated touch state newState)Called from the input processor to update the touch state and send touch and mouse events. |
| basePipeline | back to summary |
|---|---|
| private TouchPipeline basePipeline | |
| gestures | back to summary |
|---|---|
| private final GestureSupport gestures | |
| instance | back to summary |
|---|---|
| private static TouchInput instance | |
| state | back to summary |
|---|---|
| private TouchState state | |
| touches | back to summary |
|---|---|
| private final TouchInputSupport touches | |
| touchRadius | back to summary |
|---|---|
| private final int touchRadius This property determines the sensitivity of move events from touch. The bigger the value the less sensitive is the touch screen. In practice move events with a delta smaller then the value of this property will be filtered out.The value of the property is in pixels. | |
| TouchInput | back to summary |
|---|---|
| private TouchInput() | |
| countEvents | back to summary |
|---|---|
| private int countEvents(TouchState newState) Calculate the number of touch point events that will be sent by dispatchPoints(). This is the union of the touch points in the old and new states. | |
| dispatchPoint | back to summary |
|---|---|
| private void dispatchPoint(Window window, View view, int state, int id, int x, int y) | |
| getBasePipeline | back to summary |
|---|---|
| pack-priv TouchPipeline getBasePipeline() Gets the base touch filter pipeline common to all touch devices | |
| getInstance | back to summary |
|---|---|
| pack-priv static TouchInput getInstance() | |
| getState | back to summary |
|---|---|
| pack-priv void getState(TouchState result) Copies the current state into the TouchState provided.
| |
| getTouchRadius | back to summary |
|---|---|
| pack-priv int getTouchRadius() | |
| postNoPoints | back to summary |
|---|---|
| private void postNoPoints(View view) | |
| postPoint | back to summary |
|---|---|
| private void postPoint(Window window, View view, int state, TouchState. | |
| postPoints | back to summary |
|---|---|
| private void postPoints(Window window, View view, int[] states, int[] ids, int[] xs, int[] ys) | |
| postTouchEvent | back to summary |
|---|---|
| private void postTouchEvent(TouchState state, int eventType) Sends the same event type for all points in the given state
| |
| postTouchEvent | back to summary |
|---|---|
| private void postTouchEvent(MonocleWindow window, View view, TouchState newState) Sends updated touch points within the same View as last processed touch points.
| |
| setState | back to summary |
|---|---|
| pack-priv void setState(TouchState newState) Called from the input processor to update the touch state and send touch and mouse events.
| |