Skip to main content

TouchPoint Struct

Package: GHIElectronics.Endpoint.Devices.Touch
Namespace: GHIElectronics.Endpoint.Devices.Touch

One finger on the touchscreen.

class TouchPoint: ...

Constructors​

TouchPoint(int id, int x, int y)​

def __init__(self, id: int, x: int, y: int):

Builds a touch point.

ParameterTypeDescription
idintTracking id, stable per finger across moves within one gesture.
xintX coordinate in pixels, 0 at the left of the panel.
yintY coordinate in pixels, 0 at the top of the panel.

Properties​

Id​

Id: int # @property

Tracking ID, stable per finger across moves within one gesture.

Returns int

X​

X: int # @property

X coordinate in pixels, 0 at the left of the panel.

Returns int

Y​

Y: int # @property

Y coordinate in pixels, 0 at the top of the panel.

Returns int