diff options
Diffstat (limited to 'xbmc/windowing/windows/WinEventsWin32.h')
-rw-r--r-- | xbmc/windowing/windows/WinEventsWin32.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xbmc/windowing/windows/WinEventsWin32.h b/xbmc/windowing/windows/WinEventsWin32.h new file mode 100644 index 0000000..466c755 --- /dev/null +++ b/xbmc/windowing/windows/WinEventsWin32.h @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2005-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 "input/touch/TouchTypes.h" +#include "windowing/WinEvents.h" + +class CGenericTouchSwipeDetector; + +class CWinEventsWin32 : public IWinEvents +{ +public: + bool MessagePump() override; + static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); + +private: + static void RegisterDeviceInterfaceToHwnd(GUID InterfaceClassGuid, HWND hWnd, HDEVNOTIFY *hDeviceNotify); + static void WindowFromScreenCoords(HWND hWnd, POINT *point); + static void OnGestureNotify(HWND hWnd, LPARAM lParam); + static void OnGesture(HWND hWnd, LPARAM lParam); + + static int m_originalZoomDistance; + static Pointer m_touchPointer; + static CGenericTouchSwipeDetector *m_touchSwipeDetector; +}; + |