comparison Framework/Scene2D/PointerEvent.cpp @ 617:7efa2543699d

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2019 18:21:59 +0200
parents b716763571ad
children 00e6bff9ea39 2d8ab34c8c91
comparison
equal deleted inserted replaced
616:97926984d5d0 617:7efa2543699d
44 return positions_[0]; 44 return positions_[0];
45 } 45 }
46 } 46 }
47 47
48 48
49 // Add the center of the pixel
50 void PointerEvent::AddIntegerPosition(int x,
51 int y)
52 {
53 AddPosition(static_cast<double>(x) + 0.5,
54 static_cast<double>(y) + 0.5);
55 }
56
57
58 ScenePoint2D PointerEvent::GetPosition(size_t index) const 49 ScenePoint2D PointerEvent::GetPosition(size_t index) const
59 { 50 {
60 if (index < positions_.size()) 51 if (index < positions_.size())
61 { 52 {
62 return positions_[index]; 53 return positions_[index];