Instances of this class are created in response to a
touch-based input device being touched. They are found
in the touches field of an Event or TouchEvent.
The unique identity of the touch. Use this value to track changes to a touch
during the touch's life. Two touches may have the same identity even if they
come from different sources.
The object representing the input source that generated the touch.
state
publicintstate
The state of this touch at the time it was generated. If this field is 0
then the finger is still touching the device but has not moved
since the last TouchEvent was generated.
A flag indicating that the touch is the first touch from a previous
state of no touch points. Once designated as such, the touch remains
the primary touch until all fingers are removed from the device.
x
publicintx
The x location of the touch in TouchSource coordinates.
y
publicinty
The y location of the touch in TouchSource coordinates.