comparison Framework/Scene2D/PointerEvent.h @ 1208:00e6bff9ea39 broker

handling of mouse interactions in ViewportController
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Dec 2019 18:51:03 +0100
parents 7efa2543699d
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1207:17a92c39c633 1208:00e6bff9ea39
29 namespace OrthancStone 29 namespace OrthancStone
30 { 30 {
31 class PointerEvent : public boost::noncopyable 31 class PointerEvent : public boost::noncopyable
32 { 32 {
33 private: 33 private:
34 MouseButton button_;
34 std::vector<ScenePoint2D> positions_; 35 std::vector<ScenePoint2D> positions_;
35 bool hasAltModifier_; 36 bool hasAltModifier_;
36 bool hasControlModifier_; 37 bool hasControlModifier_;
37 bool hasShiftModifier_; 38 bool hasShiftModifier_;
38 39
86 87
87 bool HasShiftModifier() const 88 bool HasShiftModifier() const
88 { 89 {
89 return hasShiftModifier_; 90 return hasShiftModifier_;
90 } 91 }
92
93 void SetMouseButton(MouseButton button)
94 {
95 button_ = button;
96 }
97
98 MouseButton GetMouseButton() const
99 {
100 return button_;
101 }
91 }; 102 };
92 } 103 }