MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / onMouseEvent

Method onMouseEvent

Source/Falcor/Scene/Scene.cpp:3935–3949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

handleMouseEventMethod · 0.45
handleMouseEventMethod · 0.45

Calls

no outgoing calls

Tested by 1

handleMouseEventMethod · 0.36