mirror of
https://github.com/debauchee/barrier.git
synced 2025-08-06 10:09:28 +02:00
Initial commit of the synergy trunk sources from sf.net
This commit is contained in:
commit
958fa80d1d
429 changed files with 96848 additions and 0 deletions
106
lib/synergy/CPlatformScreen.cpp
Normal file
106
lib/synergy/CPlatformScreen.cpp
Normal file
|
@ -0,0 +1,106 @@
|
|||
/*
|
||||
* synergy -- mouse and keyboard sharing utility
|
||||
* Copyright (C) 2004 Chris Schoeneman
|
||||
*
|
||||
* This package is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* found in the file COPYING that should have accompanied this file.
|
||||
*
|
||||
* This package is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "CPlatformScreen.h"
|
||||
|
||||
CPlatformScreen::CPlatformScreen()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
CPlatformScreen::~CPlatformScreen()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void
|
||||
CPlatformScreen::updateKeyMap()
|
||||
{
|
||||
getKeyState()->updateKeyMap();
|
||||
}
|
||||
|
||||
void
|
||||
CPlatformScreen::updateKeyState()
|
||||
{
|
||||
getKeyState()->updateKeyState();
|
||||
updateButtons();
|
||||
}
|
||||
|
||||
void
|
||||
CPlatformScreen::setHalfDuplexMask(KeyModifierMask mask)
|
||||
{
|
||||
getKeyState()->setHalfDuplexMask(mask);
|
||||
}
|
||||
|
||||
void
|
||||
CPlatformScreen::fakeKeyDown(KeyID id, KeyModifierMask mask,
|
||||
KeyButton button)
|
||||
{
|
||||
getKeyState()->fakeKeyDown(id, mask, button);
|
||||
}
|
||||
|
||||
void
|
||||
CPlatformScreen::fakeKeyRepeat(KeyID id, KeyModifierMask mask,
|
||||
SInt32 count, KeyButton button)
|
||||
{
|
||||
getKeyState()->fakeKeyRepeat(id, mask, count, button);
|
||||
}
|
||||
|
||||
void
|
||||
CPlatformScreen::fakeKeyUp(KeyButton button)
|
||||
{
|
||||
getKeyState()->fakeKeyUp(button);
|
||||
}
|
||||
|
||||
void
|
||||
CPlatformScreen::fakeAllKeysUp()
|
||||
{
|
||||
getKeyState()->fakeAllKeysUp();
|
||||
}
|
||||
|
||||
bool
|
||||
CPlatformScreen::fakeCtrlAltDel()
|
||||
{
|
||||
return getKeyState()->fakeCtrlAltDel();
|
||||
}
|
||||
|
||||
bool
|
||||
CPlatformScreen::isKeyDown(KeyButton button) const
|
||||
{
|
||||
return getKeyState()->isKeyDown(button);
|
||||
}
|
||||
|
||||
KeyModifierMask
|
||||
CPlatformScreen::getActiveModifiers() const
|
||||
{
|
||||
return getKeyState()->getActiveModifiers();
|
||||
}
|
||||
|
||||
KeyModifierMask
|
||||
CPlatformScreen::pollActiveModifiers() const
|
||||
{
|
||||
return getKeyState()->pollActiveModifiers();
|
||||
}
|
||||
|
||||
SInt32
|
||||
CPlatformScreen::pollActiveGroup() const
|
||||
{
|
||||
return getKeyState()->pollActiveGroup();
|
||||
}
|
||||
|
||||
void
|
||||
CPlatformScreen::pollPressedKeys(KeyButtonSet& pressedKeys) const
|
||||
{
|
||||
getKeyState()->pollPressedKeys(pressedKeys);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue