No MouseWatcherRegion for Rocket3d

Bug #1001931 reported by Plaristote
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Won't Fix
Undecided
Unassigned

Bug Description

Panda3D 1.8.0

Currently, there's no way to easily ignore click that have happened on a Rocket3D context.
This can cause problem with people using mouse in their game, but also using several Rocket3D context simultaneously (the click will happen on both context if they're overlapping).

PGButtons use MouseWatcherRegion and allow the call to the method set_suppress_flags(MouseWatcherRegion::SF_mouse_button), which will have the mouse buttons events intercepted.

It would be neat to have something similar with RocketRegions !

Thank you !

Revision history for this message
rdb (rdb) wrote :

Unfortunately, this isn't so easy as it seems. Creating a MouseWatcherRegion would have to be done for every button, and Panda doesn't have that fine-grained control over when and where Rocket creates all of the buttons. It's probably best to implement this on the application side, sorry. It doesn't seem that Rocket provides a simple way for Panda to find out if a keyboard/mouse event has been processed by Rocket or not, either.

Changed in panda3d:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.