[Windows] Remove redundant DirectSound error codes
[xbmc.git] / xbmc / platform / android / activity / AndroidKey.h
blob3d70a4756d5745a1ea1a29b6063ab7c33e8ba62e
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>
13 #include <android/input.h>
15 class CAndroidKey
17 public:
18 CAndroidKey() = default;
19 ~CAndroidKey() = default;
21 bool onKeyboardEvent(AInputEvent *event);
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);
27 protected:
28 static bool m_handleMediaKeys;
29 static bool m_handleSearchKeys;