Remove mask suffix from: - GHOST_TButtonMask - GHOST_TModifierKeyMask .. neither are used as bit-masks. Remove 'Grab' from: - GHOST_kGrabAxisNone - GHOST_kGrabAxisY .. matching the existing GHOST_TAxisFlag & GHOST_kAxisX.
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2001-2002 NaN Holding BV. All rights reserved. */
|
|
|
|
/** \file
|
|
* \ingroup GHOST
|
|
* Declaration of GHOST_EventButton class.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "GHOST_Event.h"
|
|
#include "GHOST_Window.h"
|
|
|
|
/**
|
|
* Mouse button event.
|
|
*/
|
|
class GHOST_EventButton : public GHOST_Event {
|
|
public:
|
|
/**
|
|
* Constructor.
|
|
* \param time: The time this event was generated.
|
|
* \param type: The type of this event.
|
|
* \param window: The window of this event.
|
|
* \param button: The state of the buttons were at the time of the event.
|
|
* \param tablet: The tablet data associated with this event.
|
|
*/
|
|
GHOST_EventButton(uint64_t time,
|
|
GHOST_TEventType type,
|
|
GHOST_IWindow *window,
|
|
GHOST_TButton button,
|
|
const GHOST_TabletData &tablet)
|
|
: GHOST_Event(time, type, window), m_buttonEventData({button, tablet})
|
|
{
|
|
m_data = &m_buttonEventData;
|
|
}
|
|
|
|
protected:
|
|
/** The button event data. */
|
|
GHOST_TEventButtonData m_buttonEventData;
|
|
};
|