• Main Page
  • Classes
  • Files
  • File List

CPlatformScreen.cpp

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2012 Bolton Software Ltd.
00004  * Copyright (C) 2004 Chris Schoeneman
00005  * 
00006  * This package is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * found in the file COPYING that should have accompanied this file.
00009  * 
00010  * This package is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 
00019 #include "CPlatformScreen.h"
00020 
00021 CPlatformScreen::CPlatformScreen()
00022 {
00023     // do nothing
00024 }
00025 
00026 CPlatformScreen::CPlatformScreen(IEventQueue& eventQueue) :
00027     IPlatformScreen(eventQueue)
00028 {
00029 }
00030 
00031 CPlatformScreen::~CPlatformScreen()
00032 {
00033     // do nothing
00034 }
00035 
00036 void
00037 CPlatformScreen::updateKeyMap()
00038 {
00039     getKeyState()->updateKeyMap();
00040 }
00041 
00042 void
00043 CPlatformScreen::updateKeyState()
00044 {
00045     getKeyState()->updateKeyState();
00046     updateButtons();
00047 }
00048 
00049 void
00050 CPlatformScreen::setHalfDuplexMask(KeyModifierMask mask)
00051 {
00052     getKeyState()->setHalfDuplexMask(mask);
00053 }
00054 
00055 void
00056 CPlatformScreen::fakeKeyDown(KeyID id, KeyModifierMask mask,
00057                 KeyButton button)
00058 {
00059     getKeyState()->fakeKeyDown(id, mask, button);
00060 }
00061 
00062 bool
00063 CPlatformScreen::fakeKeyRepeat(KeyID id, KeyModifierMask mask,
00064                 SInt32 count, KeyButton button)
00065 {
00066     return getKeyState()->fakeKeyRepeat(id, mask, count, button);
00067 }
00068 
00069 bool
00070 CPlatformScreen::fakeKeyUp(KeyButton button)
00071 {
00072     return getKeyState()->fakeKeyUp(button);
00073 }
00074 
00075 void
00076 CPlatformScreen::fakeAllKeysUp()
00077 {
00078     getKeyState()->fakeAllKeysUp();
00079 }
00080 
00081 bool
00082 CPlatformScreen::fakeCtrlAltDel()
00083 {
00084     return getKeyState()->fakeCtrlAltDel();
00085 }
00086 
00087 bool
00088 CPlatformScreen::isKeyDown(KeyButton button) const
00089 {
00090     return getKeyState()->isKeyDown(button);
00091 }
00092 
00093 KeyModifierMask
00094 CPlatformScreen::getActiveModifiers() const
00095 {
00096     return getKeyState()->getActiveModifiers();
00097 }
00098 
00099 KeyModifierMask
00100 CPlatformScreen::pollActiveModifiers() const
00101 {
00102     return getKeyState()->pollActiveModifiers();
00103 }
00104 
00105 SInt32
00106 CPlatformScreen::pollActiveGroup() const
00107 {
00108     return getKeyState()->pollActiveGroup();
00109 }
00110 
00111 void
00112 CPlatformScreen::pollPressedKeys(KeyButtonSet& pressedKeys) const
00113 {
00114     getKeyState()->pollPressedKeys(pressedKeys);
00115 }

Generated on Thu Jun 20 2013 00:00:05 for Synergy by  doxygen 1.7.1