| 1 |
/* |
| 2 |
* Copyright (C) 2017-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/keyboard/Key.h" |
| 12 |
#include "input/keyboard/XBMC_keysym.h" |
| 13 |
|
| 14 |
#include <string> |
| 15 |
|
| 16 |
namespace KODI |
| 17 |
{ |
| 18 |
namespace KEYBOARD |
| 19 |
{ |
| 20 |
/// \ingroup keyboard |
| 21 |
/// \{ |
| 22 |
|
| 23 |
/*! |
| 24 |
* \brief Symbol of a hardware-independent key |
| 25 |
*/ |
| 26 |
using XBMCKey = XBMCKey; |
| 27 |
|
| 28 |
/*! |
| 29 |
* \brief Name of a hardware-indendent symbol representing a key |
| 30 |
* |
| 31 |
* Names are defined in the keyboard's controller profile. |
| 32 |
*/ |
| 33 |
using KeyName = std::string; |
| 34 |
|
| 35 |
/*! |
| 36 |
* \brief Modifier keys on a keyboard that can be held when |
| 37 |
* sending a key press |
| 38 |
* |
| 39 |
* \todo Move CKey enum to this file |
| 40 |
*/ |
| 41 |
using Modifier = CKey::Modifier; |
| 42 |
|
| 43 |
/*! |
| 44 |
* \brief Duration for which a keyboard key is considered held |
| 45 |
*/ |
| 46 |
const unsigned int KEY_HOLD_TRESHOLD = 250; |
| 47 |
|
| 48 |
/// \} |
| 49 |
} // namespace KEYBOARD |
| 50 |
} // namespace KODI |