Blender V4.5
GHOST_ModifierKeys.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9
10#pragma once
11
12#include "GHOST_Types.h"
13
23
25
32
38 bool get(GHOST_TModifierKey mask) const;
39
45 void set(GHOST_TModifierKey mask, bool down);
46
50 void clear();
51
57 bool equals(const GHOST_ModifierKeys &keys) const;
58
60 uint8_t m_LeftShift : 1;
62 uint8_t m_RightShift : 1;
64 uint8_t m_LeftAlt : 1;
66 uint8_t m_RightAlt : 1;
68 uint8_t m_LeftControl : 1;
70 uint8_t m_RightControl : 1;
72 uint8_t m_LeftOS : 1;
73 uint8_t m_RightOS : 1;
74 uint8_t m_LeftHyper : 1;
75 uint8_t m_RightHyper : 1;
76};
GHOST_TKey
GHOST_TModifierKey
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
void set(GHOST_TModifierKey mask, bool down)
bool get(GHOST_TModifierKey mask) const
bool equals(const GHOST_ModifierKeys &keys) const
static GHOST_TKey getModifierKeyCode(GHOST_TModifierKey mask)