Blender V2.61 - r43446
|
#include <GHOST_ModifierKeys.h>
Public Member Functions | |
GHOST_ModifierKeys () | |
virtual | ~GHOST_ModifierKeys () |
virtual bool | get (GHOST_TModifierKeyMask mask) const |
virtual void | set (GHOST_TModifierKeyMask mask, bool down) |
virtual void | clear () |
virtual bool | equals (const GHOST_ModifierKeys &keys) const |
Static Public Member Functions | |
static GHOST_TKey | getModifierKeyCode (GHOST_TModifierKeyMask mask) |
Public Attributes | |
GHOST_TUns8 | m_LeftShift: 1 |
GHOST_TUns8 | m_RightShift: 1 |
GHOST_TUns8 | m_LeftAlt: 1 |
GHOST_TUns8 | m_RightAlt: 1 |
GHOST_TUns8 | m_LeftControl: 1 |
GHOST_TUns8 | m_RightControl: 1 |
GHOST_TUns8 | m_OS: 1 |
Stores the state of modifier keys. Discriminates between left and right modifier keys.
Definition at line 44 of file GHOST_ModifierKeys.h.
GHOST_ModifierKeys::GHOST_ModifierKeys | ( | ) |
Constructor.
Copyright (C) 2001 NaN Technologies B.V.
Definition at line 43 of file GHOST_ModifierKeys.cpp.
References clear().
GHOST_ModifierKeys::~GHOST_ModifierKeys | ( | ) | [virtual] |
Definition at line 48 of file GHOST_ModifierKeys.cpp.
void GHOST_ModifierKeys::clear | ( | ) | [virtual] |
Sets the state of all modifier keys to up.
Definition at line 117 of file GHOST_ModifierKeys.cpp.
References m_LeftAlt, m_LeftControl, m_LeftShift, m_OS, m_RightAlt, m_RightControl, and m_RightShift.
Referenced by GHOST_ModifierKeys(), and GHOST_SystemWin32::s_wndProc().
bool GHOST_ModifierKeys::equals | ( | const GHOST_ModifierKeys & | keys | ) | const [virtual] |
Determines whether to modifier key states are equal.
keys. | The modifier key state to compare to. |
Definition at line 129 of file GHOST_ModifierKeys.cpp.
References m_LeftAlt, m_LeftControl, m_LeftShift, m_OS, m_RightAlt, m_RightControl, and m_RightShift.
bool GHOST_ModifierKeys::get | ( | GHOST_TModifierKeyMask | mask | ) | const [virtual] |
Returns the state of a single modifier key.
mask. | Key state to return. |
Definition at line 71 of file GHOST_ModifierKeys.cpp.
References GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyOS, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightShift, m_LeftAlt, m_LeftControl, m_LeftShift, m_OS, m_RightAlt, m_RightControl, and m_RightShift.
Referenced by GHOST_System::getModifierKeyState(), and GHOST_SystemWin32::hardKey().
GHOST_TKey GHOST_ModifierKeys::getModifierKeyCode | ( | GHOST_TModifierKeyMask | mask | ) | [static] |
Returns the modifier key's key code from a modifier key mask.
mask | The mask of the modifier key. |
Definition at line 51 of file GHOST_ModifierKeys.cpp.
References GHOST_kKeyLeftAlt, GHOST_kKeyLeftControl, GHOST_kKeyLeftShift, GHOST_kKeyOS, GHOST_kKeyRightAlt, GHOST_kKeyRightControl, GHOST_kKeyRightShift, GHOST_kKeyUnknown, GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyOS, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, and GHOST_kModifierKeyRightShift.
void GHOST_ModifierKeys::set | ( | GHOST_TModifierKeyMask | mask, |
bool | down | ||
) | [virtual] |
Updates the state of a single modifier key.
mask. | Key state to update. |
down. | The new state of the key. |
Definition at line 94 of file GHOST_ModifierKeys.cpp.
References GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyOS, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightShift, m_LeftAlt, m_LeftControl, m_LeftShift, m_OS, m_RightAlt, m_RightControl, and m_RightShift.
Referenced by GHOST_SystemX11::getModifierKeys(), GHOST_SystemWin32::getModifierKeys(), GHOST_SystemSDL::getModifierKeys(), GHOST_SystemCocoa::getModifierKeys(), GHOST_SystemCarbon::getModifierKeys(), and GHOST_SystemWin32::hardKey().