Debian Codegraph @

xbmc/input/keymaps/KeymapEnvironment.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 #include "input/keymaps/interfaces/IKeymapEnvironment.h"
12
13 namespace KODI
14 {
15 namespace KEYMAP
16 {
17 /*!
18 * \ingroup keymap
19 */
20 class CKeymapEnvironment : public IKeymapEnvironment
21 {
22 public:
23 ~CKeymapEnvironment() override = default;
24
25 // implementation of IKeymapEnvironment
26 int GetWindowID() const override { return m_windowId; }
27 void SetWindowID(int windowId) override { m_windowId = windowId; }
28 int GetFallthrough(int windowId) const override;
29 bool UseGlobalFallthrough() const override { return true; }
30 bool UseEasterEgg() const override { return true; }
31
32 private:
33 int m_windowId = -1;
34 };
35 } // namespace KEYMAP
36 } // namespace KODI