| 236 | } |
| 237 | |
| 238 | void SimulationInteractionController::rightMouseButtonPressed(IntVector2D const& mousePos) |
| 239 | { |
| 240 | _modesAtClick = _modes; |
| 241 | |
| 242 | if (_modes.positionSelectionMode) { |
| 243 | _modes.positionSelectionMode = false; |
| 244 | return; |
| 245 | } |
| 246 | |
| 247 | if (!_modes.editMode) { |
| 248 | _lastZoomTimepoint.reset(); |
| 249 | SimulationView::get().setMotionBlur(SimulationView::get().getMotionBlur() * 2); |
| 250 | } else { |
| 251 | if (!ImGui::GetIO().KeyAlt) { |
| 252 | if (!_simulationFacade->isSimulationRunning() && !_modes.drawMode) { |
| 253 | auto viewPos = toRealVector2D(mousePos); |
| 254 | RealRect rect{viewPos, viewPos}; |
| 255 | _selectionRect = rect; |
| 256 | } |
| 257 | } |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | void SimulationInteractionController::rightMouseButtonHold(IntVector2D const& mousePos, IntVector2D const& prevMousePos) |
| 262 | { |
nothing calls this directly
no test coverage detected