InputTouchForwarder

class kanzi::connect::InputTouchForwarder : public InputManipulator

Input manipulator for kanzi connect which forwards input touch events to input service.

Public Functions

InputTouchForwarder(Domain *domain, InputServiceClientSharedPtr service)

Constructor.

Parameters
  • domain: The UI domain

  • service: The input service instance which is used to pass events to server

~InputTouchForwarder () KZ_OVERRIDE=default

dtor

void notifyTouchInside (const TouchInfo &touchInfo) KZ_OVERRIDE

Handle the touch events within the area.

void setGeometry(const Vector2 &topLeft, const Vector2 &size)

Set active area for capture start point.

In node coordinates

Parameters
  • topLeft: The coordinates of top left corner

  • size: The width and length of the area

void setInputStreamId(string streamId, bool clearStreamIdHash)
void setInputStreamIdHash(int streamIdHash)