1 /*
2  *  Copyright (C) 2016-2018 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/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  * \brief Hush!!!
22  */
23 class CKeyboardEasterEgg : public IKeyboardDriverHandler
24 {
25 public:
26   ~CKeyboardEasterEgg() override = default;
27 
28   // implementation of IKeyboardDriverHandler
29   bool OnKeyPress(const CKey& key) override;
OnKeyRelease(const CKey & key)30   void OnKeyRelease(const CKey& key) override {}
31 
32 private:
33   static std::vector<XBMCVKey> m_sequence;
34 
35   unsigned int m_state = 0;
36 };
37 } // namespace KEYBOARD
38 } // namespace KODI
39