| 1 |
/* |
| 2 |
* Copyright (C) 2018-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 |
#include "input/InputTypes.h" |
| 12 |
|
| 13 |
#include <string> |
| 14 |
|
| 15 |
namespace KODI |
| 16 |
{ |
| 17 |
namespace MOUSE |
| 18 |
{ |
| 19 |
|
| 20 |
/// \ingroup mouse |
| 21 |
/// \{ |
| 22 |
|
| 23 |
/*! |
| 24 |
* \brief Buttons on a mouse |
| 25 |
*/ |
| 26 |
enum class BUTTON_ID |
| 27 |
{ |
| 28 |
UNKNOWN, |
| 29 |
LEFT, |
| 30 |
RIGHT, |
| 31 |
MIDDLE, |
| 32 |
BUTTON4, |
| 33 |
BUTTON5, |
| 34 |
WHEEL_UP, |
| 35 |
WHEEL_DOWN, |
| 36 |
HORIZ_WHEEL_LEFT, |
| 37 |
HORIZ_WHEEL_RIGHT, |
| 38 |
}; |
| 39 |
|
| 40 |
/*! |
| 41 |
* \brief Name of a mouse button |
| 42 |
* |
| 43 |
* Names are defined in the mouse's controller profile. |
| 44 |
*/ |
| 45 |
using ButtonName = std::string; |
| 46 |
|
| 47 |
/*! |
| 48 |
* \brief Directions of motion for a mouse pointer |
| 49 |
*/ |
| 50 |
using POINTER_DIRECTION = INPUT::CARDINAL_DIRECTION; |
| 51 |
|
| 52 |
/*! |
| 53 |
* \brief Name of the mouse pointer |
| 54 |
* |
| 55 |
* Names are defined in the mouse's controller profile. |
| 56 |
*/ |
| 57 |
using PointerName = std::string; |
| 58 |
|
| 59 |
/// \} |
| 60 |
|
| 61 |
} // namespace MOUSE |
| 62 |
} // namespace KODI |