Skip to main content

TouchEventArgs Class

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

Event data for Touch.OnChangedEvent: how the fingers changed since the last event.

class TouchEventArgs : public EventArgs {};

Constructors​

TouchEventArgs(TouchEventType eventType, TouchPoint[] points)​

TouchEventArgs(TouchEventType eventType, const std::vector<TouchPoint>& points);

Builds a touch-event payload.

ParameterTypeDescription
eventTypeTouchEventTypeWhat changed (pressed, moved, released).
pointsTouchPoint[]Every finger currently on the screen; empty when eventType is TouchEventType.Released.

Properties​

EventType​

TouchEventType EventType() const;

Kind of change this event represents.

Returns TouchEventType

Points​

std::vector<TouchPoint> Points() const;

Every finger currently on the screen. Empty for Released.

Returns TouchPoint[]