|
Blender V5.0
|
#include <GHOST_ModifierKeys.hh>
Public Member Functions | |
| GHOST_ModifierKeys () | |
| ~GHOST_ModifierKeys () | |
| bool | get (GHOST_TModifierKey mask) const |
| void | set (GHOST_TModifierKey mask, bool down) |
| void | clear () |
| bool | equals (const GHOST_ModifierKeys &keys) const |
Static Public Member Functions | |
| static GHOST_TKey | getModifierKeyCode (GHOST_TModifierKey mask) |
Public Attributes | |
| uint8_t | left_shift_: 1 |
| uint8_t | right_shift_: 1 |
| uint8_t | left_alt_: 1 |
| uint8_t | right_alt_: 1 |
| uint8_t | left_control_: 1 |
| uint8_t | right_control_: 1 |
| uint8_t | left_os_: 1 |
| uint8_t | right_os_: 1 |
| uint8_t | left_hyper_: 1 |
| uint8_t | right_hyper_: 1 |
Stores the state of modifier keys. Discriminates between left and right modifier keys.
Definition at line 18 of file GHOST_ModifierKeys.hh.
| GHOST_ModifierKeys::GHOST_ModifierKeys | ( | ) |
Constructor.
Copyright (C) 2001 NaN Technologies B.V.
Definition at line 16 of file GHOST_ModifierKeys.cc.
References clear().
Referenced by equals(), and ~GHOST_ModifierKeys().
|
default |
References GHOST_ModifierKeys(), and mask().
| void GHOST_ModifierKeys::clear | ( | ) |
Sets the state of all modifier keys to up.
Definition at line 134 of file GHOST_ModifierKeys.cc.
References left_alt_, left_control_, left_hyper_, left_os_, left_shift_, right_alt_, right_control_, right_hyper_, right_os_, and right_shift_.
Referenced by GHOST_ModifierKeys().
| 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 148 of file GHOST_ModifierKeys.cc.
References GHOST_ModifierKeys(), left_alt_, left_control_, left_hyper_, left_os_, left_shift_, right_alt_, right_control_, right_hyper_, right_os_, and right_shift_.
| bool GHOST_ModifierKeys::get | ( | GHOST_TModifierKey | mask | ) | const |
Returns the state of a single modifier key.
Definition at line 66 of file GHOST_ModifierKeys.cc.
References GHOST_ASSERT, GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftHyper, GHOST_kModifierKeyLeftOS, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightHyper, GHOST_kModifierKeyRightOS, GHOST_kModifierKeyRightShift, left_alt_, left_control_, left_hyper_, left_os_, left_shift_, mask(), right_alt_, right_control_, right_hyper_, right_os_, and right_shift_.
Referenced by GHOST_System::getModifierKeyState().
|
static |
Returns the modifier key's key code from a modifier key mask.
| mask | The mask of the modifier key. |
Definition at line 23 of file GHOST_ModifierKeys.cc.
References GHOST_ASSERT, GHOST_kKeyLeftAlt, GHOST_kKeyLeftControl, GHOST_kKeyLeftHyper, GHOST_kKeyLeftOS, GHOST_kKeyLeftShift, GHOST_kKeyRightAlt, GHOST_kKeyRightControl, GHOST_kKeyRightHyper, GHOST_kKeyRightOS, GHOST_kKeyRightShift, GHOST_kKeyUnknown, GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftHyper, GHOST_kModifierKeyLeftOS, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightHyper, GHOST_kModifierKeyRightOS, GHOST_kModifierKeyRightShift, and mask().
| void GHOST_ModifierKeys::set | ( | GHOST_TModifierKey | mask, |
| bool | down ) |
Updates the state of a single modifier key.
Definition at line 95 of file GHOST_ModifierKeys.cc.
References GHOST_ASSERT, GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftHyper, GHOST_kModifierKeyLeftOS, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightHyper, GHOST_kModifierKeyRightOS, GHOST_kModifierKeyRightShift, left_alt_, left_control_, left_hyper_, left_os_, left_shift_, mask(), right_alt_, right_control_, right_hyper_, right_os_, and right_shift_.
Referenced by GHOST_SystemCocoa::getModifierKeys(), GHOST_SystemSDL::getModifierKeys(), GHOST_SystemWayland::getModifierKeys(), GHOST_SystemWin32::getModifierKeys(), and GHOST_SystemX11::getModifierKeys().
| uint8_t GHOST_ModifierKeys::left_alt_ |
| uint8_t GHOST_ModifierKeys::left_control_ |
| uint8_t GHOST_ModifierKeys::left_hyper_ |
| uint8_t GHOST_ModifierKeys::left_os_ |
| uint8_t GHOST_ModifierKeys::left_shift_ |
| uint8_t GHOST_ModifierKeys::right_alt_ |
| uint8_t GHOST_ModifierKeys::right_control_ |
| uint8_t GHOST_ModifierKeys::right_hyper_ |
| uint8_t GHOST_ModifierKeys::right_os_ |
| uint8_t GHOST_ModifierKeys::right_shift_ |