All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
IWindowsInputHandler.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "AppInterface.h"
6 #include "KeyboardInput.h"
7 #include "IUserIdleService.h"
8 
9 namespace Eegeo
10 {
11  namespace Windows
12  {
13  namespace Input
14  {
16  {
17  public:
18  virtual ~IWindowsInputHandler() { }
19 
20  virtual void Event_TouchRotate (const AppInterface::RotateData& data)=0;
21  virtual void Event_TouchRotate_Start (const AppInterface::RotateData& data)=0;
22  virtual void Event_TouchRotate_End (const AppInterface::RotateData& data)=0;
23 
24  virtual void Event_TouchPinch (const AppInterface::PinchData& data)=0;
25  virtual void Event_TouchPinch_Start (const AppInterface::PinchData& data)=0;
26  virtual void Event_TouchPinch_End (const AppInterface::PinchData& data)=0;
27 
28  virtual void Event_TouchPan (const AppInterface::PanData& data)=0;
29  virtual void Event_TouchPan_Start (const AppInterface::PanData& data)=0;
30  virtual void Event_TouchPan_End (const AppInterface::PanData& data)=0;
31 
32  virtual void Event_TouchTap (const AppInterface::TapData& data)=0;
33  virtual void Event_TouchDoubleTap (const AppInterface::TapData& data)=0;
34 
35  virtual void Event_TouchDown (const AppInterface::TouchData& data)=0;
36  virtual void Event_TouchMove (const AppInterface::TouchData& data)=0;
37  virtual void Event_TouchUp (const AppInterface::TouchData& data)=0;
38  virtual void Event_Zoom (const AppInterface::ZoomData& data) = 0;
39 
40  virtual void Event_TiltStart (const AppInterface::TiltData& data) = 0;
41  virtual void Event_TiltEnd (const AppInterface::TiltData& data) = 0;
42  virtual void Event_Tilt (const AppInterface::TiltData& data) = 0;
43 
44  virtual bool Event_KeyPress(const AppInterface::KeyboardData& data)=0;
45  virtual void AddKeyPressListener(Eegeo::UI::NativeInput::IKeyboardInputKeyPressedHandler* handler)=0;
46  virtual bool RemoveKeyPressListener(Eegeo::UI::NativeInput::IKeyboardInputKeyPressedHandler* handler)=0;
47 
48  virtual float TranslateGlobalXToLocalX(float x) { return x; }
49  virtual float TranslateGlobalYToLocalY(float y) { return y; }
50  };
51  }
52  }
53 }