Blender V5.0
GHOST_Buttons.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
31 bool get(GHOST_TButton mask) const;
32
38 void set(GHOST_TButton mask, bool down);
39
43 void clear();
44
45 uint8_t button_left_ : 1;
46 uint8_t button_middle_ : 1;
47 uint8_t button_right_ : 1;
48 uint8_t button4_ : 1;
49 uint8_t button5_ : 1;
50 uint8_t button6_ : 1;
51 uint8_t button7_ : 1;
52};
GHOST_TButton
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
bool get(GHOST_TButton mask) const
uint8_t button_middle_
uint8_t button_right_
uint8_t button_left_
void set(GHOST_TButton mask, bool down)