diff options
Diffstat (limited to 'xbmc/windowing/osx/WinEventsOSX.h')
-rw-r--r-- | xbmc/windowing/osx/WinEventsOSX.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/xbmc/windowing/osx/WinEventsOSX.h b/xbmc/windowing/osx/WinEventsOSX.h new file mode 100644 index 0000000..7c4644f --- /dev/null +++ b/xbmc/windowing/osx/WinEventsOSX.h @@ -0,0 +1,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; +}; |