xbmc
AndroidKey.h
1 /*
2  * Copyright (C) 2012-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 <stdint.h>
12 
13 #include <android/input.h>
14 
16 {
17 public:
18  CAndroidKey() = default;
19  ~CAndroidKey() = default;
20 
21  bool onKeyboardEvent(AInputEvent *event);
22 
23  static void SetHandleMediaKeys(bool enable) { m_handleMediaKeys = enable; }
24  static void SetHandleSearchKeys(bool enable) { m_handleSearchKeys = enable; }
25  static void XBMC_Key(uint8_t code, uint16_t key, uint16_t modifiers, uint16_t unicode, bool up);
26 
27 protected:
28  static bool m_handleMediaKeys;
29  static bool m_handleSearchKeys;
30 };
bool onKeyboardEvent(AInputEvent *event)
Definition: AndroidKey.cpp:182
Definition: inftrees.h:24
Definition: AndroidKey.h:15