blob: 4dbb6c5de8630e4b7c1e2939dd7a5682f335383e (
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
|
#pragma once
#include "../../helpers/memory/Memory.hpp"
#include "../../desktop/DesktopTypes.hpp"
class CUnifiedWorkspaceSwipeGesture {
public:
void begin();
void update(double delta);
void end();
bool isGestureInProgress();
private:
PHLWORKSPACE m_workspaceBegin = nullptr;
PHLMONITORREF m_monitor;
double m_delta = 0;
int m_initialDirection = 0;
float m_avgSpeed = 0;
int m_speedPoints = 0;
int m_touchID = 0;
friend class CWorkspaceSwipeGesture;
friend class CInputManager;
};
inline UP<CUnifiedWorkspaceSwipeGesture> g_pUnifiedWorkspaceSwipe = makeUnique<CUnifiedWorkspaceSwipeGesture>();
|