kodi
KeymapTypes.h
1 /*
2  * Copyright (C) 2014-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 <set>
12 #include <string>
13 
14 namespace KODI
15 {
16 namespace KEYMAP
17 {
24 {
25  unsigned int actionId;
26  std::string actionString;
27  unsigned int holdTimeMs;
28  std::set<std::string> hotkeys;
29 
30  bool operator<(const KeymapAction& rhs) const { return holdTimeMs < rhs.holdTimeMs; }
31 };
32 
39 {
40  int windowId = -1;
41  std::set<KeymapAction> actions;
42 };
43 } // namespace KEYMAP
44 } // namespace KODI
Action entry in joystick.xml.
Definition: KeymapTypes.h:23
Container that sorts action entries by their holdtime.
Definition: KeymapTypes.h:38
Definition: AudioDecoder.h:18
Definition: actions.py:1