xbmc
KeyboardEasterEgg.h
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 {
24 {
25 public:
26  ~CKeyboardEasterEgg() override = default;
27 
28  // implementation of IKeyboardDriverHandler
29  bool OnKeyPress(const CKey& key) override;
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
bool OnKeyPress(const CKey &key) override
A key has been pressed.
Definition: KeyboardEasterEgg.cpp:22
void OnKeyRelease(const CKey &key) override
A key has been released.
Definition: KeyboardEasterEgg.h:30
Controller configuration window.
Definition: AudioDecoder.h:18
Hush!!!
Definition: KeyboardEasterEgg.h:23
Interface for handling keyboard events.
Definition: IKeyboardDriverHandler.h:21
Definition: Key.h:135