All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AndroidInputProcessor.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "AndroidInput.h"
6 #include "PanGesture.h"
7 #include "PinchGesture.h"
8 #include "RotateGesture.h"
9 #include "TouchGesture.h"
10 #include "TapGesture.h"
11 #include "EegeoRootDeclarations.h"
12 
13 namespace Eegeo
14 {
15  namespace Android
16  {
17  namespace Input
18  {
20  {
21  private:
22  PanGesture m_pan;
23  PinchGesture m_pinch;
24  RotateGesture m_rotate;
25  TouchGesture m_touch;
26  TapGesture m_tap;
27 
28  v2 m_viewportOffset;
29 
30  public:
31  AndroidInputProcessor(IAndroidInputHandler* pHandler, const float screenWidth, const float screenHeight);
32  void HandleInput(const TouchInputEvent& event);
33  void Update(float deltaSeconds);
34 
35 // void SetTouchController(ITouchController* pTouchController);
36 //
37  void SetScreenDimensions(float screenWidth, float screenHeight);
38  void SetViewportOffset(float x, float y);
39  };
40  }
41  }
42 }