All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TouchScreenPinchGesture.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "AppInterface.h"
6 #include "WindowsInput.h"
7 
8 namespace Eegeo
9 {
10  namespace Windows
11  {
12  namespace Input
13  {
15  {
16  private:
17  IWindowsInputHandler* m_pHandler;
18  bool m_pinching;
19  float m_previousDistance;
20  const float m_majorScreenDimension;
21  bool UpdatePinching(bool pinching, const TouchScreenInputEvent& event, float& pinchScale, int numTouches, bool pointerUp, const std::vector<TouchScreenInputEvent>& touchEvents);
22  public:
23  TouchScreenPinchGesture(IWindowsInputHandler* pPinchHandler, const float screenWidth, const float screenHeight);
24 
25  void PointerDown(const TouchScreenInputEvent& event, const std::vector<TouchScreenInputEvent>& touchEvents);
26  void PointerUp(const TouchScreenInputEvent& event, const std::vector<TouchScreenInputEvent>& touchEvents);
27  void PointerMove(const TouchScreenInputEvent& event, const std::vector<TouchScreenInputEvent>& touchEvents);
28  };
29  }
30  }
31 }