Mercurial > hg > orthanc-stone
comparison Applications/Samples/SimpleViewerApplicationSingleFile.h @ 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 | 22b80f5c3a1c |
comparison
equal
deleted
inserted
replaced
456:b70fcc134ba4 | 457:3b4df9925db6 |
---|---|
64 KeyboardModifiers modifiers, | 64 KeyboardModifiers modifiers, |
65 int viewportX, | 65 int viewportX, |
66 int viewportY, | 66 int viewportY, |
67 double x, | 67 double x, |
68 double y, | 68 double y, |
69 IStatusBar* statusBar) | 69 IStatusBar* statusBar, |
70 const std::vector<Touch>& displayTouches) | |
70 { | 71 { |
71 if (button == MouseButton_Left) | 72 if (button == MouseButton_Left) |
72 { | 73 { |
73 statusBar->SetMessage("selected thumbnail " + widget.GetName()); | 74 statusBar->SetMessage("selected thumbnail " + widget.GetName()); |
74 std::string seriesId = widget.GetName().substr(strlen("thumbnail-series-")); | 75 std::string seriesId = widget.GetName().substr(strlen("thumbnail-series-")); |