summaryrefslogtreecommitdiffstats
path: root/xbmc/windowing/osx/WinEventsOSX.h
blob: 7c4644f831ce88cb0e4658e97390aae62383e4ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 *  Copyright (C) 2011-2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#pragma once

#include "threads/Thread.h"
#include "windowing/WinEvents.h"
#include "windowing/XBMC_events.h"

#include <memory>

struct CWinEventsOSXImplWrapper;

class CWinEventsOSX : public IWinEvents, public CThread
{
public:
  CWinEventsOSX();
  ~CWinEventsOSX();

  void MessagePush(XBMC_Event* newEvent);
  bool MessagePump();
  size_t GetQueueSize();

  void enableInputEvents();
  void disableInputEvents();

private:
  std::unique_ptr<CWinEventsOSXImplWrapper> m_eventsImplWrapper;
};