Called when a mouse motion event occurs
| 674 | |
| 675 | // Called when a mouse motion event occurs |
| 676 | bool SceneDemo::mouseMotionEvent(double xMouse, double yMouse, int leftButtonState, int rightButtonState, int middleButtonState, int altKeyState) { |
| 677 | |
| 678 | if (mIsMovingBody) { |
| 679 | moveBodyWithMouse(xMouse, yMouse); |
| 680 | return true; |
| 681 | } |
| 682 | |
| 683 | return Scene::mouseMotionEvent(xMouse, yMouse, leftButtonState, rightButtonState, middleButtonState, altKeyState); |
| 684 | } |
| 685 | |
| 686 | // Called when a raycast hit occurs (used to move a body with the mouse) |
| 687 | rp3d::decimal SceneDemo::notifyRaycastHit(const rp3d::RaycastInfo& raycastInfo) { |
nothing calls this directly
no outgoing calls
no test coverage detected