comparison Applications/Samples/SimpleViewer/MainWidgetInteractor.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 b1377625e4ba
comparison
equal deleted inserted replaced
456:b70fcc134ba4 457:3b4df9925db6
30 KeyboardModifiers modifiers, 30 KeyboardModifiers modifiers,
31 int viewportX, 31 int viewportX,
32 int viewportY, 32 int viewportY,
33 double x, 33 double x,
34 double y, 34 double y,
35 IStatusBar* statusBar) 35 IStatusBar* statusBar,
36 const std::vector<Touch>& displayTouches)
36 { 37 {
37 if (button == MouseButton_Left) 38 if (button == MouseButton_Left)
38 { 39 {
39 if (application_.GetCurrentTool() == SimpleViewerApplication::Tools_LineMeasure) 40 if (application_.GetCurrentTool() == SimpleViewerApplication::Tools_LineMeasure)
40 { 41 {