| 3933 | } |
| 3934 | |
| 3935 | bool Scene::onMouseEvent(const MouseEvent& mouseEvent) |
| 3936 | { |
| 3937 | if (mCameraControlsEnabled) |
| 3938 | { |
| 3939 | // DEMO21, but I think it makes sense, if the camera did anything, stop the animation for it. |
| 3940 | if (mpCamCtrl->onMouseEvent(mouseEvent)) |
| 3941 | { |
| 3942 | auto& camera = mCameras[mSelectedCamera]; |
| 3943 | camera->setIsAnimated(false); |
| 3944 | return true; |
| 3945 | } |
| 3946 | } |
| 3947 | |
| 3948 | return false; |
| 3949 | } |
| 3950 | |
| 3951 | bool Scene::onKeyEvent(const KeyboardEvent& keyEvent) |
| 3952 | { |
no outgoing calls