No MouseWatcherRegion for Rocket3d
Bug #1001931 reported by
Plaristote
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_
It would be neat to have something similar with RocketRegions !
Thank you !
To post a comment you must log in.
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.