[Windows] Remove redundant DirectSound error codes
[xbmc.git] / xbmc / platform / android / activity / EventLoop.h
blob9898c11499e30bb5c6a6c7aacbb5f300aecdf8b4
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 "IActivityHandler.h"
12 #include "IInputHandler.h"
14 #include <android_native_app_glue.h>
16 class CEventLoop
18 public:
19 CEventLoop(android_app* application);
21 void run(IActivityHandler &activityHandler, IInputHandler &inputHandler);
23 protected:
24 void activate();
25 void deactivate();
27 void processActivity(int32_t command);
28 int32_t processInput(AInputEvent* event);
30 private:
31 static void activityCallback(android_app* application, int32_t command);
32 static int32_t inputCallback(android_app* application, AInputEvent* event);
34 bool m_enabled = false;
35 android_app* m_application;
36 IActivityHandler* m_activityHandler;
37 IInputHandler* m_inputHandler;