5 #include "GlobeCamera.h"
6 #include "ITouchController.h"
7 #include "GlobeCameraTouchControllerConfiguration.h"
8 #include "VectorMath.h"
10 #include "ScreenProperties.h"
26 void SetDebugLogging(
bool enableDebugLogging) { m_enableDebugLogging = enableDebugLogging; }
30 virtual void Update(
float deltaSeconds);
32 virtual float GetZoomDelta()
const {
return m_zoomDelta; }
33 virtual float GetZoomVelocity()
const {
return m_zoomVelocity; }
34 virtual float GetRotationDelta()
const {
return m_rotationDelta; }
35 virtual const v2& GetPanPixelDelta()
const {
return m_panPixelDelta; }
36 virtual float GetTiltDelta()
const {
return m_tiltDelta; }
38 virtual bool IsPanning()
const {
return m_panning; }
39 virtual bool IsTilting()
const {
return m_tilting; }
40 virtual bool IsRotating()
const {
return m_rotating; }
42 virtual void SetPanIsHeavilyDamped(
bool panIsHeavilyDamped) { m_panIsHeavilyDamped = panIsHeavilyDamped; }
44 virtual const v2& GetPanAbsolutePixelCoord()
const {
return m_panAbsolutePixelCoord; }
46 virtual float GetScreenScale()
const {
return m_screenScale; }
73 void UpdateRotationInertia(
float deltaSeconds);
74 void UpdateZoomInertia(
float deltaSeconds);
75 void UpdatePanInertia(
float deltaSeconds);
83 bool m_enableDebugLogging;
90 bool m_tiltStartBlocked;
91 bool m_panIsHeavilyDamped;
94 float m_zoomAccumulator;
97 float m_rotationDelta;
98 float m_rotationAccumulator;
99 float m_rotationVelocity;
100 float m_previousEventRotation;
103 int m_singleTouchRotateEvents;
104 int m_panEventsSinceGestureStart;
105 int m_framesSincePanEvent;
110 Eegeo::v2 m_previousEventPanPointRelative;
114 float m_tiltAccumulator;