All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MousePanGesture.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "AppInterface.h"
6 #include "VectorMath.h"
7 #include "WindowsInput.h"
8 #include <vector>
9 
10 namespace Eegeo
11 {
12  namespace Windows
13  {
14  namespace Input
15  {
17  {
18  private:
19  IWindowsInputHandler* m_pHandler;
20  bool m_panButtonDown;
21  bool m_panning;
22  v2 m_anchor;
23  v2 m_current;
24  const float m_majorScreenDimension;
25  const float m_panStartThresholdPixels;
26 
27  AppInterface::PanData PopulatePanData() const;
28  public:
29  MousePanGesture(IWindowsInputHandler* pHandler, const float screenWidth, const float screenHeight, const float panStartThresholdPixels);
30 
31  void PointerDown(const MouseInputEvent& event);
32  void PointerUp(const MouseInputEvent& event);
33  void PointerMove(const MouseInputEvent& event);
34  };
35  }
36  }
37 }