| 580 | } |
| 581 | |
| 582 | void MultiViewInterface::updateZoomScroll(const sibr::Input & input) |
| 583 | { |
| 584 | double scroll = input.mouseScroll(); |
| 585 | |
| 586 | if (scroll != 0) { |
| 587 | float ratio = (scroll > 0 ? 0.75f : 1.33f); |
| 588 | if (input.key().isActivated(sibr::Key::LeftControl)) { |
| 589 | ratio *= ratio; |
| 590 | } |
| 591 | viewRectangle.diagonal *= ratio; |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | void MultiViewInterface::updateCenter(const sibr::Input & input, const sibr::Vector2f & winSize) |
| 596 | { |
nothing calls this directly
no test coverage detected