|
Blender
V2.93
|
#include <GHOST_ModifierKeys.h>
Public Member Functions | |
| GHOST_ModifierKeys () | |
| ~GHOST_ModifierKeys () | |
| bool | get (GHOST_TModifierKeyMask mask) const |
| void | set (GHOST_TModifierKeyMask mask, bool down) |
| void | clear () |
| 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 33 of file GHOST_ModifierKeys.h.
| GHOST_ModifierKeys::GHOST_ModifierKeys | ( | ) |
Constructor.
Copyright (C) 2001 NaN Technologies B.V.
Definition at line 30 of file GHOST_ModifierKeys.cpp.
References clear().
| GHOST_ModifierKeys::~GHOST_ModifierKeys | ( | ) |
Definition at line 35 of file GHOST_ModifierKeys.cpp.
| void GHOST_ModifierKeys::clear | ( | void | ) |
Sets the state of all modifier keys to up.
Definition at line 123 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 |
Determines whether to modifier key states are equal.
| keys | The modifier key state to compare to. |
Definition at line 134 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 |
Returns the state of a single modifier key.
| mask | Key state to return. |
Definition at line 72 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, m_RightShift, and mask().
Referenced by GHOST_System::getModifierKeyState(), and GHOST_SystemWin32::hardKey().
|
static |
Returns the modifier key's key code from a modifier key mask.
| mask | The mask of the modifier key. |
Definition at line 39 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, GHOST_kModifierKeyRightShift, and mask().
| void GHOST_ModifierKeys::set | ( | GHOST_TModifierKeyMask | mask, |
| bool | down | ||
| ) |
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, m_RightShift, and mask().
Referenced by GHOST_SystemCocoa::getModifierKeys(), GHOST_SystemSDL::getModifierKeys(), GHOST_SystemWin32::getModifierKeys(), GHOST_SystemX11::getModifierKeys(), GHOST_SystemWayland::getModifierKeys(), and GHOST_SystemWin32::hardKey().
| GHOST_TUns8 GHOST_ModifierKeys::m_LeftAlt |
| GHOST_TUns8 GHOST_ModifierKeys::m_LeftControl |
| GHOST_TUns8 GHOST_ModifierKeys::m_LeftShift |
| GHOST_TUns8 GHOST_ModifierKeys::m_OS |
| GHOST_TUns8 GHOST_ModifierKeys::m_RightAlt |
| GHOST_TUns8 GHOST_ModifierKeys::m_RightControl |
| GHOST_TUns8 GHOST_ModifierKeys::m_RightShift |