#include <CXWindowsKeyState.h>
Inherits CKeyState.
Inheritance diagram for CXWindowsKeyState:
Public Types | |
typedef std::vector< int > | CKeycodeList |
enum | { kGroupPoll = -1, kGroupPollAndSet = -2 } |
Public Member Functions | |
CXWindowsKeyState (Display *, bool useXKB) | |
virtual bool | fakeCtrlAltDel () |
Fake ctrl+alt+del. | |
virtual KeyModifierMask | pollActiveModifiers () const |
Get the active modifiers from OS. | |
virtual SInt32 | pollActiveGroup () const |
Get the active keyboard layout from OS. | |
virtual void | pollPressedKeys (KeyButtonSet &pressedKeys) const |
Get the keys currently pressed from OS. | |
modifiers | |
void | setActiveGroup (SInt32 group) |
Set active group. | |
void | setAutoRepeat (const XKeyboardState &) |
Set the auto-repeat state. | |
accessors | |
KeyModifierMask | mapModifiersFromX (unsigned int state) const |
Convert X modifier mask to synergy mask. | |
bool | mapModifiersToX (KeyModifierMask, unsigned int &) const |
Convert synergy modifier mask to X mask. | |
void | mapKeyToKeycodes (KeyID key, CKeycodeList &keycodes) const |
Convert synergy key to all corresponding X keycodes. | |
Protected Member Functions | |
virtual void | getKeyMap (CKeyMap &keyMap) |
Get the keyboard map. | |
virtual void | fakeKey (const Keystroke &keystroke) |
Fake a key event. |
A key state for X Windows.
Definition at line 39 of file CXWindowsKeyState.h.
|
Fake ctrl+alt+del. Synthesize a press of ctrl+alt+del. Return true if processing is complete and false if normal key processing should continue. Implements CKeyState. Definition at line 129 of file CXWindowsKeyState.cpp. |
|
Fake a key event.
Synthesize an event for Implements CKeyState. Definition at line 204 of file CXWindowsKeyState.cpp. References CKeyState::getEffectiveGroup(), and pollActiveGroup(). |
|
Get the keyboard map.
Fills Implements CKeyState. Definition at line 182 of file CXWindowsKeyState.cpp. |
|
Convert synergy key to all corresponding X keycodes.
Converts the synergy key Definition at line 116 of file CXWindowsKeyState.cpp. Referenced by CXWindowsScreen::registerHotKey(). |
|
Convert X modifier mask to synergy mask.
Returns the synergy modifier mask corresponding to the X modifier mask in Definition at line 81 of file CXWindowsKeyState.cpp. Referenced by CXWindowsScreen::handleSystemEvent(), and pollActiveModifiers(). |
|
Convert synergy modifier mask to X mask.
Converts the synergy modifier mask to the corresponding X modifier mask. Returns Definition at line 94 of file CXWindowsKeyState.cpp. Referenced by CXWindowsScreen::registerHotKey(). |
|
Get the active keyboard layout from OS. Returns the active keyboard layout according to the operating system. Implements CKeyState. Definition at line 149 of file CXWindowsKeyState.cpp. Referenced by fakeKey(), and setActiveGroup(). |
|
Get the active modifiers from OS. Returns the modifiers that are currently active according to the operating system. Implements CKeyState. Definition at line 136 of file CXWindowsKeyState.cpp. References mapModifiersFromX(). |
|
Get the keys currently pressed from OS.
Adds any keys that are currently pressed according to the operating system to Implements CKeyState. Definition at line 168 of file CXWindowsKeyState.cpp. |
|
Set active group.
Sets the active group to Definition at line 59 of file CXWindowsKeyState.cpp. References pollActiveGroup(). Referenced by CXWindowsScreen::handleSystemEvent(). |
|
Set the auto-repeat state. Sets the auto-repeat state. Definition at line 75 of file CXWindowsKeyState.cpp. Referenced by CXWindowsScreen::enable(), and CXWindowsScreen::enter(). |