comparison Framework/Radiography/RadiographyLayerMoveTracker.cpp @ 457:3b4df9925db6 am-touch-events

added support for 'touch' in mouse trackers. This is still a bit hacky and we need to refactor it to make it clean. Thanks to that, Pan and zoom are available together with 2 touches
author Alain Mazy <alain@mazy.be>
date Thu, 24 Jan 2019 16:42:27 +0100
parents a750f11892ec
children 4f2416d519b4
comparison
equal deleted inserted replaced
456:b70fcc134ba4 457:3b4df9925db6
95 95
96 96
97 void RadiographyLayerMoveTracker::MouseMove(int displayX, 97 void RadiographyLayerMoveTracker::MouseMove(int displayX,
98 int displayY, 98 int displayY,
99 double sceneX, 99 double sceneX,
100 double sceneY) 100 double sceneY,
101 const std::vector<Touch>& displayTouches,
102 const std::vector<Touch>& sceneTouches)
101 { 103 {
102 if (accessor_.IsValid()) 104 if (accessor_.IsValid())
103 { 105 {
104 double dx = sceneX - clickX_; 106 double dx = sceneX - clickX_;
105 double dy = sceneY - clickY_; 107 double dy = sceneY - clickY_;