Debian Codegraph @

xbmc/input/mouse/MouseEvent.h

raw
1 /*
2 * Copyright (C) 2005-2024 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 namespace KODI
12 {
13 namespace MOUSE
14 {
15 /*!
16 * \ingroup mouse
17 *
18 * \brief Simple class for mouse events
19 */
20 class CMouseEvent
21 {
22 public:
23 CMouseEvent(int actionID, int state = 0, float offsetX = 0, float offsetY = 0)
24 : m_id(actionID), m_state(state), m_offsetX(offsetX), m_offsetY(offsetY)
25 {
26 }
27
28 int m_id;
29 int m_state;
30 float m_offsetX;
31 float m_offsetY;
32 };
33 } // namespace MOUSE
34 } // namespace KODI