Blender V5.0
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 left_shift_ : 1;
62 uint8_t right_shift_ : 1;
64 uint8_t left_alt_ : 1;
66 uint8_t right_alt_ : 1;
68 uint8_t left_control_ : 1;
70 uint8_t right_control_ : 1;
72 uint8_t left_os_ : 1;
73 uint8_t right_os_ : 1;
74 uint8_t left_hyper_ : 1;
75 uint8_t right_hyper_ : 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)