Debian Codegraph @

xbmc/input/keymaps/interfaces/IKeyMapper.h

raw
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 namespace tinyxml2
12 {
13 class XMLNode;
14 }
15
16 namespace KODI
17 {
18 namespace KEYMAP
19 {
20 /*!
21 * \ingroup keymap
22 *
23 * \brief Interface for classes that can map buttons to Kodi actions
24 */
25 class IKeyMapper
26 {
27 public:
28 virtual ~IKeyMapper() = default;
29
30 virtual void MapActions(int windowId, const tinyxml2::XMLNode* pDevice) = 0;
31
32 virtual void Clear() = 0;
33 };
34 } // namespace KEYMAP
35 } // namespace KODI