kodi
WinEventsWin32.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "input/touch/TouchTypes.h"
12 #include "windowing/WinEvents.h"
13 
15 
17 {
18 public:
19  bool MessagePump() override;
20  static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
21 
22 private:
23  static void RegisterDeviceInterfaceToHwnd(GUID InterfaceClassGuid, HWND hWnd, HDEVNOTIFY *hDeviceNotify);
24  static void WindowFromScreenCoords(HWND hWnd, POINT *point);
25  static void OnGestureNotify(HWND hWnd, LPARAM lParam);
26  static void OnGesture(HWND hWnd, LPARAM lParam);
27 
28  static int m_originalZoomDistance;
29  static Pointer m_touchPointer;
30  static CGenericTouchSwipeDetector *m_touchSwipeDetector;
31 };
32 
Implementation of IGenericTouchGestureDetector to detect swipe gestures in any direction.
Definition: GenericTouchSwipeDetector.h:20
Definition: WinEventsWin32.h:16
Definition: WinEvents.h:13
A class representing a touch pointer interaction consisting of an down touch, the last touch and the ...
Definition: TouchTypes.h:49