Falcor icon indicating copy to clipboard operation
Falcor copied to clipboard

Events claimed by a render pass are still propagated further down

Open pierremoreau opened this issue 5 years ago • 0 comments

This is an issue, for example, when using the SplitScreenPass as moving the divider between the two splits results in the camera moving along.

SplitScreenPass::onMouseEvent() returns true when the divider is grabbed, as expected, but Mogwai's Renderer::onMouseEvent() does not check the return value of the RenderGraph::onMouseEvent() method and so will still call the onMouseEvent() method on the scene (therefore resulting in the camera moving along despite the SplitScreenPass pass claiming the events).

The same issue applies to keyboard events.

pierremoreau avatar Sep 19 '20 14:09 pierremoreau