deskflow/src/lib/server/BaseClientProxy.cpp

35 lines
665 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) 2006 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
2012-06-10 16:50:54 +00:00
*/
#include "server/BaseClientProxy.h"
2012-06-10 16:50:54 +00:00
//
2014-11-11 13:51:47 +00:00
// BaseClientProxy
2012-06-10 16:50:54 +00:00
//
BaseClientProxy::BaseClientProxy(const std::string &name) : m_name(name), m_x(0), m_y(0)
{
// do nothing
2012-06-10 16:50:54 +00:00
}
2025-01-11 01:11:56 +00:00
void BaseClientProxy::setJumpCursorPos(int32_t x, int32_t y)
{
m_x = x;
m_y = y;
2012-06-10 16:50:54 +00:00
}
2025-01-11 01:11:56 +00:00
void BaseClientProxy::getJumpCursorPos(int32_t &x, int32_t &y) const
{
x = m_x;
y = m_y;
2012-06-10 16:50:54 +00:00
}
std::string BaseClientProxy::getName() const
{
return m_name;
}