[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / platform / android / activity / AndroidKey.h
blob13cad9d0dbd10c1ff9593da5dcd91c8b6c27f49d
1 /*
2 * Copyright (C) 2012-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include <stdint.h>
12 #include <string>
13 #include <vector>
15 #include <android/input.h>
17 class CAndroidKey
19 public:
20 CAndroidKey() = default;
21 ~CAndroidKey() = default;
23 bool onKeyboardEvent(AInputEvent *event);
25 static void SetHandleMediaKeys(bool enable) { m_handleMediaKeys = enable; }
26 static void SetHandleSearchKeys(bool enable) { m_handleSearchKeys = enable; }
27 static void XBMC_Key(uint8_t code, uint16_t key, uint16_t modifiers, uint16_t unicode, bool up);
29 protected:
30 static bool m_handleMediaKeys;
31 static bool m_handleSearchKeys;