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