Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

CPlatformScreen.cpp

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

Generated on Fri Nov 6 00:21:14 2009 for synergy-plus by  doxygen 1.3.9.1