comparison Framework/Widgets/ZoomMouseTracker.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 b70e9be013e4
children 4f2416d519b4
comparison
equal deleted inserted replaced
456:b70fcc134ba4 457:3b4df9925db6
59 59
60 60
61 void ZoomMouseTracker::MouseMove(int displayX, 61 void ZoomMouseTracker::MouseMove(int displayX,
62 int displayY, 62 int displayY,
63 double x, 63 double x,
64 double y) 64 double y,
65 const std::vector<Touch>& displayTouches,
66 const std::vector<Touch>& sceneTouches)
65 { 67 {
66 static const double MIN_ZOOM = -4; 68 static const double MIN_ZOOM = -4;
67 static const double MAX_ZOOM = 4; 69 static const double MAX_ZOOM = 4;
68 70
69 71