TouchPoint Struct
Package: GHIElectronics.Endpoint.Devices.Touch
Namespace: GHIElectronics.Endpoint.Devices.Touch
One finger on the touchscreen.
struct TouchPoint {};
Constructors
TouchPoint(int id, int x, int y)
TouchPoint(int32_t id, int32_t x, int32_t y);
Builds a touch point.
| Parameter | Type | Description |
|---|---|---|
id | int | Tracking id, stable per finger across moves within one gesture. |
x | int | X coordinate in pixels, 0 at the left of the panel. |
y | int | Y coordinate in pixels, 0 at the top of the panel. |
Properties
Id
int32_t Id() const;
Tracking ID, stable per finger across moves within one gesture.
Returns int
X
int32_t X() const;
X coordinate in pixels, 0 at the left of the panel.
Returns int
Y
int32_t Y() const;
Y coordinate in pixels, 0 at the top of the panel.
Returns int