comparison Framework/Scene2DViewport/ViewportController.cpp @ 1249:964c89e15e7e broker

ViewportController::HandleMouseMove() returning a Boolean for invalidation
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 Jan 2020 14:23:24 +0100
parents f621b57c9f37
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1248:2a8359503f3b 1249:964c89e15e7e
276 // No measure tool, create new tracker from the interactor 276 // No measure tool, create new tracker from the interactor
277 activeTracker_.reset(interactor.CreateTracker(shared_from_this(), event, viewportWidth, viewportHeight)); 277 activeTracker_.reset(interactor.CreateTracker(shared_from_this(), event, viewportWidth, viewportHeight));
278 } 278 }
279 } 279 }
280 280
281 void ViewportController::HandleMouseMove(const PointerEvent& event) 281 bool ViewportController::HandleMouseMove(const PointerEvent& event)
282 { 282 {
283 if (activeTracker_) 283 if (activeTracker_)
284 { 284 {
285 activeTracker_->PointerMove(event); 285 activeTracker_->PointerMove(event);
286 return true;
287 }
288 else
289 {
290 return false;
286 } 291 }
287 } 292 }
288 293
289 void ViewportController::HandleMouseRelease(const PointerEvent& event) 294 void ViewportController::HandleMouseRelease(const PointerEvent& event)
290 { 295 {