MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / mouseMotionEvent

Method mouseMotionEvent

testbed/src/SceneDemo.cpp:676–684  ·  view source on GitHub ↗

Called when a mouse motion event occurs

Source from the content-addressed store, hash-verified

674
675// Called when a mouse motion event occurs
676bool 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)
687rp3d::decimal SceneDemo::notifyRaycastHit(const rp3d::RaycastInfo& raycastInfo) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected