2004-03-21 20:01:41 +00:00
|
|
|
/*
|
|
|
|
* 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::updateKeys()
|
|
|
|
{
|
|
|
|
getKeyState()->updateKeys();
|
|
|
|
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::fakeToggle(KeyModifierMask modifier)
|
|
|
|
{
|
|
|
|
getKeyState()->fakeToggle(modifier);
|
|
|
|
}
|
|
|
|
|
2004-03-26 20:59:26 +00:00
|
|
|
bool
|
|
|
|
CPlatformScreen::fakeCtrlAltDel()
|
|
|
|
{
|
|
|
|
return getKeyState()->fakeCtrlAltDel();
|
|
|
|
}
|
|
|
|
|
2004-03-21 20:01:41 +00:00
|
|
|
bool
|
|
|
|
CPlatformScreen::isKeyDown(KeyButton button) const
|
|
|
|
{
|
|
|
|
return getKeyState()->isKeyDown(button);
|
|
|
|
}
|
|
|
|
|
|
|
|
KeyModifierMask
|
|
|
|
CPlatformScreen::getActiveModifiers() const
|
|
|
|
{
|
|
|
|
return getKeyState()->getActiveModifiers();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char*
|
|
|
|
CPlatformScreen::getKeyName(KeyButton button) const
|
|
|
|
{
|
|
|
|
return getKeyState()->getKeyName(button);
|
|
|
|
}
|