}
void TransferTouchCancel() override {
+ if (!is_down_)
+ return;
+ is_down_ = false;
tizen_remote_surface_transfer_touch_cancel(GetRaw());
}
wl_fixed_t pressure, wl_fixed_t angle,
uint32_t clas, uint32_t subclas,
const char *identifier, uint32_t time) override {
+ if (event_type == TIZEN_REMOTE_SURFACE_EVENT_TYPE_MOUSE_DOWN)
+ is_down_ = true;
+ else if (event_type == TIZEN_REMOTE_SURFACE_EVENT_TYPE_MOUSE_UP)
+ is_down_ = false;
tizen_remote_surface_transfer_mouse_event(GetRaw(), event_type,
device, button, x, y, radius_x, radius_y, pressure, angle, clas,
subclas, identifier, time);
private:
ITRS::IEventListener* listener_ = nullptr;
+ bool is_down_ = false;
};
} // namespace screen_connector