Debian Codegraph @

xbmc/input/keyboard/KeyboardEasterEgg.h

raw
1 /*
2 * Copyright (C) 2016-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/XBMC_vkeys.h"
12 #include "input/keyboard/interfaces/IKeyboardDriverHandler.h"
13
14 #include <vector>
15
16 namespace KODI
17 {
18 namespace KEYBOARD
19 {
20 /*!
21 * \ingroup keyboard
22 *
23 * \brief Hush!!!
24 */
25 class CKeyboardEasterEgg : public IKeyboardDriverHandler
26 {
27 public:
28 ~CKeyboardEasterEgg() override = default;
29
30 // implementation of IKeyboardDriverHandler
31 bool OnKeyPress(const CKey& key) override;
32 void OnKeyRelease(const CKey& key) override {}
33
34 private:
35 static std::vector<XBMCVKey> m_sequence;
36
37 unsigned int m_state = 0;
38 };
39 } // namespace KEYBOARD
40 } // namespace KODI