InputEventForwarder

class kanzi::connect::InputEventForwarder : public InputManipulator

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

Public Functions

InputEventForwarder(Domain *domain, InputServiceClientSharedPtr service, ManipulatorType type = ManipulatorType::TouchInputHandler)

Constructor.

Parameters
  • domain: The UI domain

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

~InputEventForwarder() override = default

dtor

bool notifyKeyInput(const KeyEvent &event) override

Handle the key events within the node.

void notifyTouchInside(const TouchInfo &touchInfo) 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)