deskflow/src/lib/server/ClientProxy1_2.cpp

28 lines
757 B
C++
Raw Normal View History

2012-06-10 16:50:54 +00:00
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
2012-06-10 16:50:54 +00:00
*/
#include "server/ClientProxy1_2.h"
#include "base/Log.h"
#include "deskflow/ProtocolUtil.h"
2012-06-10 16:50:54 +00:00
//
2014-11-11 13:51:47 +00:00
// ClientProxy1_1
2012-06-10 16:50:54 +00:00
//
ClientProxy1_2::ClientProxy1_2(const std::string &name, deskflow::IStream *stream, IEventQueue *events)
: ClientProxy1_1(name, stream, events)
{
// do nothing
2012-06-10 16:50:54 +00:00
}
2025-01-11 01:11:56 +00:00
void ClientProxy1_2::mouseRelativeMove(int32_t xRel, int32_t yRel)
{
LOG_DEBUG2("send mouse relative move to \"%s\" %d,%d", getName().c_str(), xRel, yRel);
ProtocolUtil::writef(getStream(), kMsgDMouseRelMove, xRel, yRel);
2012-06-10 16:50:54 +00:00
}